Catch an click event in VB.Net CF

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
 
G

Guest

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.
 

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