MDI窗口(类似ASP.NET框架)

            this.splitContainer1.Panel2.Controls.Clear();
            Form1 frm = new Form1();
            frm.MdiParent = this;
            frm.Dock = DockStyle.Fill;
            this.splitContainer1.Panel2.Controls.Add(frm);
            frm.Show();


当然得设第一个窗口ismdicontainer=true;

你可能感兴趣的:(asp.net)