Closing application window

T

Tom Libby

I have created an app that runs on the Pocket PC with C# and VS.Net 2003. I
would like to trap when the user clicks on X in the title bar. I have tried
the Closed & Closing events of the form but neither of these are raised when
the X is clicked. Anyone know how to accomplish this. I want the app to
shutdown when this is clicked. Not hide like it appears to be doing now.
The app is still listed in the running programs list on the PPC.

Thanks
Tom
 
G

Ginny Caughey [MVP]

Tom,

I wish I had a dollar for each time this question is asked. ;-)

Set MinimizeBox = false on your main form. The X turns into OK and the close
related events will fire.
 

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