请文MDI子窗体怎么写?

解决方案 »

  1.   

    Dim frm_khxx_add As Form = New Frm_khxx_add
            frm_khxx_add.MdiParent = Me
            frm_khxx_add.Show()
      

  2.   

    ftyd yd=new ftyd();
    yd.MdiParent=this;
    yd.Show();//客户预定
    这是我写的怎么不管用呀!
      

  3.   

    form2 f=new form2();
    f.MdiParent=this;
    f.Show();还有要在你的form2窗口属性里的isMdi设置为true。
      

  4.   

    主窗体设为mdi了呀,子窗体不能这么设吧。
      

  5.   

    //还有要在你的form2窗口属性里的isMdi设置为true。
    这句话错了,是调用
    form2 f=new form2();
    f.MdiParent=this;
    f.Show();
    这段代码的窗体属性里的isMdi设置为true。
      

  6.   

    还有要在你的form2窗口属性里的isMdi设置为true。
      

  7.   

    在MDI主窗体上用DataGrid控件后MDI子窗体跑到下面去了,看不到了。
    现在去掉了,就好了。不过背景怎么设呀,设了没有效果。