winform MDI应用程序

来源:互联网 发布:百万个吻网络歌手 编辑:程序博客网 时间:2024/05/16 11:32

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)
 这就设置了水平平铺
0 0
原创粉丝点击