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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>