Exemplo n.º 1
0
        private void 打开OToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmTxt MDIChid = new frmTxt();

            MDIChid.MdiParent = this;
            MDIChid.Show();
        }
Exemplo n.º 2
0
        private void 打开OToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmTxt MDIChild = new frmTxt();

            MDIChild.MdiParent = this;          // 设置子窗体的父窗体
            MDIChild.Show();                    // 创建并显示一个子窗体
        }