MdiParent Is NULL

I activated an MDI child using the following code :

MyChildForm myChildForm = new MyChildForm();
myChildForm.MdiParent = this;
myChildForm.Show();

however, in the childForm thid.MdiParent = null.

the Parent form isMdiContainer ...

Pls help !!!




Answer this question

MdiParent Is NULL

  • Jarno Burger

    Maybe you can try this:



    myChildForm.Show(this);

     


    HTH

    Bye.

  • MdiParent Is NULL