Click to See Complete Forum and Search --> : [RESOLVED] How do you close these apps??
szlamany
Apr 1st, 2007, 04:31 PM
The [X] doesn't seem to trigger any events...
How do you all close your mobile apps?
VS2005/Windows CE 5.0
petevick
Apr 2nd, 2007, 01:11 AM
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
Strider
Apr 2nd, 2007, 03:57 AM
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
szlamany
Apr 2nd, 2007, 07:20 AM
Well - I could not find a MINIMIZE property on my form - I've only got one form.
Maybe VS2005 is different?
petevick
Apr 2nd, 2007, 08:50 AM
Hi,
sorry - minimizebox
That will make it go through the closing event of the form, rather than just smart minimizing
Pete
szlamany
Apr 2nd, 2007, 10:17 AM
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 ;)
Shaggy Hiker
Apr 2nd, 2007, 10:17 PM
Without a taskbar to speak of, it makes little sense to minimize in the same manner as a desktop program.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.