Close Win Form

  • Thread starter Thread starter George Ivanov
  • Start date Start date
G

George Ivanov

hi,
I want to close C# Win Form application for Pocket PC, only by pressing
[X]. On the device pressing [X] closes the window, but the application
is still active.
How can I catch the click event for [X] button and close the
application?
 
With Pocket PC, the "X" on the title bar is known as the "smart minimize"
button. It does not close your application, it simply minimizes it into the
background. Try setting the Form's MinimizeBox property to false. You should
see a button that says "OK" instead of the "X". Tapping "OK", on the main
Form, will close your application.
 
Back
Top