Modal window

  • Thread starter Thread starter WildGooose
  • Start date Start date
W

WildGooose

Scenario : From my parent browser I call child windows.
The call is always going to be Form.Show(). But for this
specific child window, I need it to be displayed in modal.
Is there a way I can display this child window in modal
without calling showdialog().
 
You could use a workaround by adding code in the parent.Activated event.
Determine if a child is open (boolean) , if it is, call child.Activate.
This will seem like it is modal

Not very elegant, but it would work.
 
WildGooose said:
Is there a way I can display this child window in modal
without calling showdialog().

A possible hack would be for the child window to hide itself
immediately after being shown and then displaying a modal
version of itself.
 
Back
Top