Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making the window [X] button close instead of minimise on Windows Moblie

The [x] button in the top bar of a window that normally closes the window in standard Windows, appears to do a minimise instead on Windows Compact.

How do it make it close instead? I need to also be able to raise an event when this happens as I want to preform some logic on window close.

like image 802
Dan Avatar asked Nov 24 '08 18:11

Dan


1 Answers

Set the Form.MinimizeBox property to false. This will change the [X] to [ok], and close your form instead of minimizing it when clicked.

Edit: The event you want is either Closing or Closed.

like image 148
Martin Plante Avatar answered Dec 12 '22 17:12

Martin Plante