The [X] doesn't seem to trigger any events...
How do you all close your mobile apps?
VS2005/Windows CE 5.0
Printable View
The [X] doesn't seem to trigger any events...
How do you all close your mobile apps?
VS2005/Windows CE 5.0
Hi,
the standard way in Windows Mobile is to minimise not close and let the OS take care of it.
Right.:confused:
Most folks don't think this is a good idea. To get your app to close rather than just minimise, change the minimize property on your main form to false, then it will close as normal when the user hits the 'x'
Pete
i presume application.exit still exists in CF 2005? i use this to exit my 2003 applications. But i use that on button events to exit
Well - I could not find a MINIMIZE property on my form - I've only got one form.
Maybe VS2005 is different?
Hi,
sorry - minimizebox
That will make it go through the closing event of the form, rather than just smart minimizing
Pete
That is so odd.
In the IDE it's showing the standard three items - minimize, max, close
But on the PPC it's just one [X]
Changing the MINIMIZE BOX to false makes the PPC [X] change to [ok] - and like you said it will now close the app when [ok] is clicked.
What a strange world this mobile dev comes from ;)
Without a taskbar to speak of, it makes little sense to minimize in the same manner as a desktop program.