mustafabar
mustafabar

Reputation: 2359

Distribution of MDI children in an MDI parent

I have an MDI parent form that creates many MDI children at run time. Is there a smart way to evenly ditribute these forms inside there parent? any ideas?

Thanks in advance!!

Upvotes: 2

Views: 2115

Answers (1)

Tzury Bar Yochay
Tzury Bar Yochay

Reputation: 9004

**ArrangeIcons**     child window icons are arranged within the parent
**Cascade**          arrange the child windows within the parent window in a cascaded fashion
**TileHorizontal**   tile the child windows horizontally
**TileVertical**     tile the child windows vertically


//Cascade all child forms.        
this.LayoutMdi(System.Windows.Forms.MdiLayout.Cascade);

have a look at http://www.codeproject.com/KB/cs/mdiformstutorial.aspx for a start

Upvotes: 3

Related Questions