winform Mdi应用程序

1.创建Mdi应用程序的步骤如下:

  1.1 设置父窗口的IsMdiContainer的属性值为true,

  1.2在子窗口中设置其父窗口,代码如下:

   Form1 f1 = new Form1();
            f1.MdiParent = this;
            f1.Show();
 其中f1是子窗口。

 1.3 设置排列顺序

  this.LayoutMdi(System.Windows.Forms.MdiLayout.TileHorizontal)
 这就设置了水平平铺


 

posted on 2011-09-22 23:31  wtq  阅读(589)  评论(0编辑  收藏  举报