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.
 

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

Back
Top