hi again,
In my Main form I use a nonmodal dialog (nmd).
every time the form is minimized the nmd also is minimized, of course it has to.
But displaying the form again will not show the nmd automatically.
I've tried the forms Activated-Event and the Activate-command for nmd but that won't do it. Same with VisibleChanged event.
how can I achieve that ?
for your answers many thanks in advance

Franz HeynPosted Aug 13, 2025, 2:13 PM
hi hammad,
thanks for the response,
the form is a fixed dialog. No resizing, no controlbox to minimize or maximize, only repositioning can be done
my problem is I can't find an event that triggers when I restore the form to windowstate.normal.
I guess nmd.Show() will do it bit don't know where to put this command.
hammad sheikhPosted Aug 13, 2025, 1:35 PM
It sounds like your nonmodal dialog just isn’t reappearing because it isn’t being explicitly restored when the main form is brought back. You might need to manually handle the Form.Resize or Form.ResizeEnd events and check if the main form’s
WindowStatechanges fromMinimizedtoNormal, then callnmd.Show()ornmd.BringToFront(). In a way, it’s similar to how free legal counsel for RO water shops ensures important matters don’t get overlooked—here, you’re just making sure your dialog gets the same attention as your main form when it’s time to bring it back.