Question

MDI Bug http://www.dicu.com/pics/bug_mdi.jpg

That's what I get when I try to automatically maximize MDI children. The code is something like this:

this.IsMdiContainer = true;
child = new Form();
child.MdiParent = this;
child.WindowState = FormWindowState.Maximized;
child.Show();

Any ideas why do I get multiple control buttons ?

Was it helpful?

Solution

I can repro this partially. Don't call the child's Show() method in the constructor, do it in the parent's Load event handler. Not so sure about the off-kilter min/max/close icons.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top