用MDI方式打开一个子窗口体后,总是不能最大化显示,明明子窗口体的WindowState设置为Maximized?
解决办法:
1、把父窗体的IsMdiContainer设置为True;
2、把子窗体的WindowState设置为Normal;
3、在父窗体中用下面的方法打开子窗体:
private void menuItemsMdiForm_Click(object sender, EventArgs e)
{
MyChildForm childForm = new MyChildForm();
childForm .MdiParent = this;
childForm .WindowState = FormWindowState.Maximized;
childForm .Show();
}