日期:2014-05-18 浏览次数:20981 次
form2 cpt = new form2(this);//form2是子窗体,代码写在父窗体中 cpt.TopLevel = false; cpt.Parent = this.panel1;//要融入的容器panel1 cpt.WindowState = FormWindowState.Maximized; cpt.Dock = DockStyle.Fill; cpt.FormBorderStyle = FormBorderStyle.None; cpt.Show();