hi everybody
i have a MDI form that it shows child forms with the "Show()" method .
in one of that child forms i show another form that owned by this form again with the "Show()" method .
this cause this second form become TopMost . means that all another forms are shown behind this second form .
why this happen ?
code is like this :
/// within MDI form
frmChild1 frm = new frmChild1();
frm.MdiParent = this;
frm.Show();
/// within frmChild1 form
frmTest frmtest = new frmTest();
frmtest.Owener = this;
frmtest.Show();
in above example frmtest become TopMost and another child forms are shown behind this form
i have a MDI form that it shows child forms with the "Show()" method .
in one of that child forms i show another form that owned by this form again with the "Show()" method .
this cause this second form become TopMost . means that all another forms are shown behind this second form .
why this happen ?
code is like this :
/// within MDI form
frmChild1 frm = new frmChild1();
frm.MdiParent = this;
frm.Show();
/// within frmChild1 form
frmTest frmtest = new frmTest();
frmtest.Owener = this;
frmtest.Show();
in above example frmtest become TopMost and another child forms are shown behind this form
Comment