Search code examples
c#.netwinformssubforms

How to add subforms to a form in c#


i have two little questions to you: How to add several subforms to a form in C# like on the pictures below:

https://i.sstatic.net/ag1WD.jpg [Cascade]

https://i.sstatic.net/SzBGH.jpg [Tile]

And the second one is how to manage their position(Cascade, Tile, etc.). Thank you for your time!


Solution

  • This is a Multiple Document Interface (MDI) form but, as Robert Harvey mentioned in a comment, there's probably a better way to build your UI.

    To layout the child forms you will use the LayoutMdi method of the parent.