How to

create MDI form

Published: 18. December 2008 | Updated: 18. December 2008
License: Microsoft Public License (MS-PL)
Categories: Winforms
Tags: C# Controls UI Winforms
Was this snippet helpful for you? YESYES / NONO

Code

In main form
this.IsMdiContainer = true;

Form form = new Form();
form.MdiParent = this;
form.Show();

Form form2 = new Form();
form2.MdiParent = this;
form2.Show();

this.LayoutMdi(MdiLayout.TileVertical);
Send us feedback about this snippet »



Related Snippets: