how to open MdiChild from another MdiChild

I open MdiChild_1 from the parent MainForm and I want to open MdiChild_2 from a button on the MdiChild_1

I tried this code but not working..

frmMain MainForm = new frmMain();

frmRemarks RemarksForm = new frmRemarks();

RemarksForm.MdiParent = MainForm;

RemarksForm.Show();




Answer this question

how to open MdiChild from another MdiChild

  • John Bailey

    Hi,

    try the following code:

    frmRemarks form = new frmRemarks();
    form.MdiParent = this.MdiParent;
    form.Show();

    Andrej



  • Todd A Herman

    Also add

    RemarksForm .TopLevel = False;


  • David Bridgestone

    Hi,

    Is your problem solved

    Thank you,
    Bhanu.



  • DFX1212

    problem solved with:

    frmRemarks form = new frmRemarks();
    form.MdiParent = this.MdiParent;
    form.Show();



  • how to open MdiChild from another MdiChild