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.
---
Mark Arteaga
..NET Compact Framework MVP
www.neotericsdc.com
"Arnaud" wrote:
> 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
>