Example #1
0
 private void 加载子窗体ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Frm_ChildOne frm2 = new Frm_ChildOne();//实例化Frm_ChildOne
     frm2.MdiParent = this;//设置MdiParent属性,将当前窗体作为父窗体
     frm2.Show();//使用Show方法打开窗体
     Frm_ChildTwo frm3 = new Frm_ChildTwo();//实例化Frm_ChildTwo
     frm3.MdiParent = this;//设置MdiParent属性,将当前窗体作为父窗体
     frm3.Show();//使用Show方法打开窗体
     Frm_ChildThree frm4 = new Frm_ChildThree();//实例化Frm_ChildThree
     frm4.MdiParent = this;//设置MdiParent属性,将当前窗体作为父窗体
     frm4.Show();//使用Show方法打开窗体
 }
        private void  入子視窗ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_ChildOne frm2 = new Frm_ChildOne();     //實例化Frm_ChildOne

            frm2.MdiParent = this;                      //設定MdiParent屬性,將目前視窗作為父視窗
            frm2.Show();                                //使用Show方法打開視窗
            Frm_ChildTwo frm3 = new Frm_ChildTwo();     //實例化Frm_ChildTwo

            frm3.MdiParent = this;                      //設定MdiParent屬性,將目前視窗作為父視窗
            frm3.Show();                                //使用Show方法打開視窗
            Frm_ChildThree frm4 = new Frm_ChildThree(); //實例化Frm_ChildThree

            frm4.MdiParent = this;                      //設定MdiParent屬性,將目前視窗作為父視窗
            frm4.Show();                                //使用Show方法打開視窗
        }
Example #3
0
        private void 加载子窗体ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_ChildOne frm2 = new Frm_ChildOne();     //实例化Frm_ChildOne

            frm2.MdiParent = this;                      //设置MdiParent属性,将当前窗体作为父窗体
            frm2.Show();                                //使用Show方法打开窗体
            Frm_ChildTwo frm3 = new Frm_ChildTwo();     //实例化Frm_ChildTwo

            frm3.MdiParent = this;                      //设置MdiParent属性,将当前窗体作为父窗体
            frm3.Show();                                //使用Show方法打开窗体
            Frm_ChildThree frm4 = new Frm_ChildThree(); //实例化Frm_ChildThree

            frm4.MdiParent = this;                      //设置MdiParent属性,将当前窗体作为父窗体
            frm4.Show();                                //使用Show方法打开窗体
        }