Reputation: 51
I have a smartdevice project targeting windows mobile 6. In the top right corner is an X (provided by the controlbox). i have an event on the form_closing that i was hoping would fire when the cross is clicked. But it doesnt :-(
Does anyone know why this event is not firing ???
Thanks :-) John
Upvotes: 1
Views: 1092
Reputation: 9011
Read this: http://msdn.microsoft.com/en-us/library/system.windows.forms.form.closing.aspx
Upvotes: 1
Reputation: 75366
Set the MinimizeBox
property of your form to false
. It's a weird thing about WinMo forms, but the X
in the corner is really a minimize button, so it doesn't actually close the form. Setting MinimizeBox
to false
will replace the X
with an OK
button, and you'll get the form closing event.
Upvotes: 7
Reputation: 5905
There are a number of possible reasons why theis could be happening, but I seriously doubt anyone will be able to guess why in this case, without you letting us see any of your code?
Upvotes: -2