本人试过,下载一个WeifenLuo.WinFormsUI.Docking.dll
使用方法可以百度一下:“WeifenLuo.WinFormsUI.Docking控件”
你可以试下。
引用DLL
private void Form1_Load(object sender, EventArgs e)
{
Form2 form2 = new Form2();
Form3 form3 = new Form3();
Form4 form4 = new Form4();
Form5 form5 = new Form5();
Form6 form6 = new Form6();
form2.Show(this.dockPanel1);
form3.Show(this.dockPanel1);
form4.Show(this.dockPanel1);
form5.Show(this.dockPanel1);
form6.Show(this.dockPanel1);
form3.DockTo(this.dockPanel1, DockStyle.Fill);
form3.DockTo(this.dockPanel1, DockStyle.Left);
form4.DockTo(this.dockPanel1, DockStyle.Bottom);
form5.DockTo(this.dockPanel1, DockStyle.Right);
form6.DockTo(this.dockPanel1, DockStyle.Right);
}
希望对您有一点点帮助。