示例#1
0
文件: Frm_Main.cs 项目: TGHGH/C-1200
 private void button1_Click(object sender, EventArgs e)
 {
     Frm_Child frm = new Frm_Child();//实例化子窗体对象
     frm.MdiParent = this;//设置子窗体的父窗体为当前窗体
     frm.WindowState = FormWindowState.Maximized;//设置子窗体最大化显示
     frm.Show();//显示子窗体
 }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Frm_Child frm = new Frm_Child();             //实例化子窗体对象

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

            frm.MdiParent   = this;                      //設定子視窗的父視窗為目前視窗
            frm.WindowState = FormWindowState.Maximized; //設定子視窗最大化顯示
            frm.Show();                                  //顯示子視窗
        }