Groups | Blog | Home
all groups > dotnet compact framework > april 2004 >

dotnet compact framework : Modeless Dialog Query.


Amit Patankar
4/4/2004 10:51:03 PM
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

Mark Arteaga
4/5/2004 9:51:04 AM
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

AddThis Social Bookmark Button