Multiple control buttons for a maximised MDI child in .NET WinForms
-
06-07-2019 - |
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 ?
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