PC Review


Reply
Thread Tools Rate Thread

Catch an click event in VB.Net CF

 
 
Arnaud
Guest
Posts: n/a
 
      3rd Dec 2004
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWFyayBBcnRlYWdhIDxNVlA+?=
Guest
Posts: n/a
 
      3rd Dec 2004
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
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Catch click event button Neron Microsoft Word Document Management 2 23rd Mar 2010 10:03 AM
How can I catch the PopUp Menu Click Event Frank van Boven Microsoft Access Getting Started 0 13th Mar 2007 02:58 PM
How can I catch Click-Event of button on IExplorer? keandi Windows XP Internet Explorer 1 13th Sep 2006 03:58 AM
Catch Click Event at Design Time Don Microsoft VB .NET 5 11th Oct 2005 10:36 PM
How to catch max button click event? (C#) =?Utf-8?B?RGVhc3k=?= Microsoft Dot NET Framework Forms 1 22nd Sep 2004 02:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:00 PM.