WinForm模拟网页中框架效果
//在Form1窗体中,按钮事件中,
Form2 form = new Form2();
form.FormBorderStyle = FormBorderStyle.None;
Form2 form = new Form2();
form.FormBorderStyle = FormBorderStyle.None;
form.TopLevel = false; //指示子窗体非顶级窗体
this.panel1.Controls.Add(form); //将子窗体载入
form.Show();
this.panel1.Controls.Add(form); //将子窗体载入
form.Show();