c# - MDI 子级在 MDI 父级中的分布

标签 c# .net winforms mdi

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

提前致谢!!

最佳答案

**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首先

关于c# - MDI 子级在 MDI 父级中的分布,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1417362/

相关文章:

c# - 如何从 HttpListener 提供相关文件

.net - 保存安全字符串

c# - 检查是否至少选择了一个复选框列表在 windows 窗体中

.net - 使用随机作为一次性密码 token 的基础

c# - 如何在 UserControl 中设置设计 View 项,以便多个子控件具有这些项

c# - 在 .NET 中生成、显示和打印简单文档

javascript - 在 Chart.js MVC c# 中使用模型中的数据

c# - 跨不同 Controller 和 View 重用局部 View (ascx)

c# - 从盘符获取驱动器型号

.net - 如何在启动时运行一次单击一次部署的应用程序?