2

我有一个 MDI 父窗体,它在运行时创建许多 MDI 子窗体。有没有一种聪明的方法可以在父级内部均匀分布这些表单?有任何想法吗?

提前致谢!!

4

1 回答 1

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开始

于 2009-09-13T11:19:01.067 回答