Catch an click event in VB.Net CF

  • Thread starter Thread starter Arnaud
  • Start date Start date
A

Arnaud

Hi,

i have a modal form not in full screen (the screen beyond is visible),
and i want (need) to close it when the user click outside this modal
form.

I have tried to overrides the WndProc (what i use to do in eVC++) but
this method is not available in the CF.

Anybody has an idea how to do it (without having an hard way to manage
a classic form in a modal way) ?

thanx for any help or clues
Arno
 
When your modal form loads set Capture = true then on the mouse up check the
X,Y of the mouse to see if you are outside the bounds of the form. If you
are then set Capture = false and close the form.
 
Back
Top