G
Gregory Khrapunovich
I have created a form (Windows Forms) that opens several modeless dialogs.
Sometimes they become covered by other (unrelated) applications and its
annoying to click on each dialog to make them visible again. I would like
all dialogs to become visible when main form becomes visible.
Main form has pointers to each dialog, so I guess all I need is to execute
dlg.BringToFront() for each modeless dialog. The question is when I should
do it. I created Paint event handler for the main form and put these
commands in it. It does the trick but creates other problems, such as main
menu doesn't show up when forms overlap. So where in the main form should I
place dlg.BringToFront() ?
Thank you.
Gregory
Sometimes they become covered by other (unrelated) applications and its
annoying to click on each dialog to make them visible again. I would like
all dialogs to become visible when main form becomes visible.
Main form has pointers to each dialog, so I guess all I need is to execute
dlg.BringToFront() for each modeless dialog. The question is when I should
do it. I created Paint event handler for the main form and put these
commands in it. It does the trick but creates other problems, such as main
menu doesn't show up when forms overlap. So where in the main form should I
place dlg.BringToFront() ?
Thank you.
Gregory