PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Form close event

Reply

Form close event

 
Thread Tools Rate Thread
Old 02-11-2007, 11:56 AM   #1
Anand Kale
Guest
 
Posts: n/a
Default Form close event


Hi,

How do I trap the event when the user clicks on the X to close the
application ? Which is the event to trap ?
Also by default does the application goes in background and OS manages
to bring to foreground when launched again ?

I want to do this from CF.NET 2.0 application.

Thx,
Anand


  Reply With Quote
Old 02-11-2007, 01:13 PM   #2
Guest
 
Posts: n/a
Default Re: Form close event

The (X) does not close a Form. It's a minimize button. Use your favorite
search engine for "detect smart minimize"


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com


"Anand Kale" <anand.kale@synerzip.com> wrote in message
news:OIswd8THIHA.6096@TK2MSFTNGP05.phx.gbl...
> Hi,
>
> How do I trap the event when the user clicks on the X to close the
> application ? Which is the event to trap ?
> Also by default does the application goes in background and OS manages
> to bring to foreground when launched again ?
>
> I want to do this from CF.NET 2.0 application.
>
> Thx,
> Anand
>



  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off