Closing application window

  • Thread starter Thread starter Tom Libby
  • Start date Start date
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
 
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.
 
Back
Top