Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Frm_Child frm = new Frm_Child(); //实例化子窗体对象

            frm.MdiParent = this;            //设置子窗体的父窗体为当前窗体
            frm.Show();                      //显示子窗体
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Frm_Child frm = new Frm_Child(); //實例化子視窗物件

            frm.MdiParent = this;            //設定子視窗的父視窗為目前視窗
            frm.Show();                      //顯示子視窗
        }
Example #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     Frm_Child frm = new Frm_Child();//实例化子窗体对象
     frm.MdiParent = this;//设置子窗体的父窗体为当前窗体
     frm.Show();//显示子窗体
 }