private void menuItem1_Click(object sender, System.EventArgs e)
{
    yourForm child=new yourForm();
    child.MdiParent = this; 
    child.Show();
}

解决方案 »

  1.   

    form1 frm = new form1();
    frm.show();
      

  2.   

    首先
    1、将父窗体的IsMdiContainer属性设为true,改为MDI容器
    2、假设子窗体的类为FormChild,则在父窗体中这样使用:
         FormChild frm = new FormChild();
         frm.MidParent = this; //重点是这一句
         frm.Show();
    就行了
      

  3.   

    猜猜你的错误,代码修改如下:
    protected void menuItem1_Click(object sender, System.EventArgs e)
    {
        child cd = new child();
        cd.MdiParent = this;
        cd.Show();
    }
      

  4.   

    父窗体的IsMdiContainer属性;你可能没设这个。