L
Lee Benfield
Anyone seen the following odd behaviour? (not found it in FAQs etc)
Create a simple project, two forms, first is MDI parent
with a MenuStrip, (File->New and Windows menu items).
Set MdiWindowListItem for the MenuStrip to be WindowsToolStripMenuItem,
(or whatever you called the 'Windows' item above).
Form1 code is just vanilla:
private void newToolStripMenuItem_Click(object sender, EventArgs e)
{
Form2 x = new Form2();
x.MdiParent = this;
x.Show();
}
All works well. I can create many children, see them in the Windows
list, and remove them.
HOWEVER, if I maximize the children, either programatically,
(this.WindowState = System.Windows.Forms.FormWindowState.Maximized)
or using the control, when I close them with [X], they are not removed
from the Windows List!
I can produce this every time with a project from scratch, so it's not
something daft in my current code....
Cheers,
Lee.
Create a simple project, two forms, first is MDI parent
with a MenuStrip, (File->New and Windows menu items).
Set MdiWindowListItem for the MenuStrip to be WindowsToolStripMenuItem,
(or whatever you called the 'Windows' item above).
Form1 code is just vanilla:
private void newToolStripMenuItem_Click(object sender, EventArgs e)
{
Form2 x = new Form2();
x.MdiParent = this;
x.Show();
}
All works well. I can create many children, see them in the Windows
list, and remove them.
HOWEVER, if I maximize the children, either programatically,
(this.WindowState = System.Windows.Forms.FormWindowState.Maximized)
or using the control, when I close them with [X], they are not removed
from the Windows List!
I can produce this every time with a project from scratch, so it's not
something daft in my current code....
Cheers,
Lee.