Programmatically Layout MDI Child Forms

batutabunsing

Member
Joined
Mar 3, 2008
Messages
19
Programming Experience
Beginner
How do I programmatically layout the child forms in MDI container?

For example, is there an MDI command for

- Cascade windows
- Tile Vertical
- Tile Horizontal
etc.

I want to know how the MDI does this. I think it is not exposed when you use the Standard menu items and as such, I want to know how it is done.

Thanks.
 
You may layout mdichildren using LayoutMdi method

for example,

VB.NET:
Expand Collapse Copy
Me.LayoutMdi(MdiLayout.TileHorizontal)

Me.LayoutMdi(MdiLayout.TileVertical)

Me.LayoutMdi(MdiLayout.Cascade)

Me.LayoutMdi(MdiLayout.ArrangeIcons)

here Me refers to the mdi parent

Hope this helps you
 
The MSDN documentation for the IsMdiContainer property, which you must already be setting, has a link to a topic entitled "Multiple-Document Interface (MDI) Applications". That topic has a link to a topic entitled "How To: Arrange MDI Child Forms". Microsoft don't hide this information but if you don't look then of course you won't find.
 
Back
Top