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(); //显示子窗体 }
private void button1_Click(object sender, EventArgs e) { Frm_Child frm = new Frm_Child(); //實例化子視窗物件 frm.MdiParent = this; //設定子視窗的父視窗為目前視窗 frm.WindowState = FormWindowState.Maximized; //設定子視窗最大化顯示 frm.Show(); //顯示子視窗 }