Modal window

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().
 
C

Chad Tamplin

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.
 
?

=?ISO-8859-1?Q?Christian_Fr=F6schlin?=

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top