I have a non-MDI form that I am using as the base form for my application. This parent form calls showdialog on several child forms when menu items are selected, which in turn shows those child forms in front of the parent form.
If there is another application opened behind my application I have some issues when the child forms are shown as dialogs.
If the other application is maximized, then the base form for my application disappears behind the other application and only the child form shows. If the other application is not maximized, then the window for that application gets placed between my parent and child forms.
Is there a property other than the MDI property that I can set to circumvent this problem I am avoiding using the MDI property for reasons that I will not go into depth about here.
Thank you for taking the time to read my question,
Jason

Other application windows appear between forms when showdialog called.
Paul Cyr
Hi,
This is common problem occurs if we didnot designed model structure,
just follow the following instruction. consider you are opening child form from the parent form.
parentform Name is - frmParent.
child form Opened from frmParent is - frmChild1.
another child form opened from frmChild1.
In that case you have to set the owner for Model dialogue, here frmChild1, frmChild2 are Model Dialogues.
Code to solve your problem is
class frmParent...
{
/ * Some codes */
private void Btn.._Click(... )
{
frmChild1 child1 = new frmChild1();
child1.ShowDialogue( this ); /// here this is owner[ frmParent is owner ]
}
}
class frmChild1...
{
/ * Some codes */
private void Btn.._Click(... )
{
frmChild2 child2 = new frmChild2();
child2.ShowDialogue( this.Owner ); /// here owner is not this[ frmChild1 is model ] . this.Owner is frmParent,
}
}
This problem will happen because of bad design in Model dialogues/Wizards etc. this can be solved by setting the proper owner for Model Dialogue as shown above.
-Thanks
udooz
Thank you very much for your help. That works great.
I am sorry that I didn't realize this before. I pass the parent form as a parameter for the showdialog and it works great.