private void Parent_Load(object sender, System.EventArgs e) { this.IsMdiContainer=true;//设置父窗体是容器 Son mySon=new Son();//子窗体 mySon.MdiParent=this;//设置窗体的关系 mySon.Parent=pnl1;//设置子窗体的容器为Panel mySon.Show();//显示子窗体 }