Modeless Dialog Query.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am displaying a modeless dialog box using the Show property. I want to trap an event such that when I click outside the dialog box(anywhere outside) the dialog box should get closed(Hide property) Which event should I trap? I used LostFocus...but its not working..

Please Help
Thanks

Amit.
 
I havn't tested this but give this a try. Set the Capture property of the form to true. On the mouse down you should be able to get the co-ordinantes outside the control. Using this method you should be able to determine if the user clicked outside the form

HTH...Mar

----- Amit Patankar wrote: ----

I am displaying a modeless dialog box using the Show property. I want to trap an event such that when I click outside the dialog box(anywhere outside) the dialog box should get closed(Hide property) Which event should I trap? I used LostFocus...but its not working..

Please Help
Thanks

Amit.
 
Back
Top