Catalin DICU
Catalin DICU

Reputation: 4638

Multiple control buttons for a maximised MDI child in .NET WinForms

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 ?

Upvotes: 2

Views: 846

Answers (1)

Hans Passant
Hans Passant

Reputation: 942119

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.

Upvotes: 3

Related Questions