在MDI父母中分发MDI子女

时间:2009-09-13 10:10:04

标签: c# .net winforms mdi

我有一个MDI父窗体,可以在运行时创建许多MDI子窗体。是否有一种聪明的方法可以在父母身边均匀地分辨这些形式? 任何想法?

提前致谢!!

1 个答案:

答案 0 :(得分:3)

**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);

查看http://www.codeproject.com/KB/cs/mdiformstutorial.aspx开始