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)
 这就设置了水平平铺


 

相关文章:

  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2021-07-14
  • 2021-10-28
  • 2022-12-23
猜你喜欢
  • 2021-08-08
  • 2021-11-23
  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案