Turn off MDI auto-cascading
- by Serge
Hello, I am attempting to automatically add some MDI windows:
for (int i = 0; i < a.size; i++)
{
Form child = new Form();
child.MdiParent = this;
child.Location = a.Location[i];
child.Size = a.Size[i];
child.Show();
}
Now the size works fine, however the location is always cascaded at the top corner instead of the one that I have set. When I just add a new child form and set location it seems to work fine, however when I do many in a loop they all cascade.