|
-
May 23rd, 2007, 01:16 PM
#1
Thread Starter
Hyperactive Member
[2.0] ApplicationExit windows mobile
i am trying to use Application.ApplicationExit += ... and i can not get this to work because it is not in my mobile form. does anyone know how to get this into my mobile form? or any other way to execute code when my application is terminating.
-
May 25th, 2007, 01:54 AM
#2
Re: [2.0] ApplicationExit windows mobile
You don't "get something into your form" when it's simply not supported by the Compact Framework. The MSDN documentation for every type and member specifies whether it is supported in the CF and if so which versions.
I'd suggest handling the Closed event of your main form.
-
May 25th, 2007, 10:21 AM
#3
Thread Starter
Hyperactive Member
Re: [2.0] ApplicationExit windows mobile
i have tried using the closed event and nothing happens...thats why i was trying to use this other event...
-
May 25th, 2007, 10:54 PM
#4
Re: [2.0] ApplicationExit windows mobile
What do you mean "nothing happens"? Does the form's Closed event get raised? If so then the code within the handler will be executed. What is that code supposed to do?
-
May 26th, 2007, 01:11 PM
#5
Thread Starter
Hyperactive Member
Re: [2.0] ApplicationExit windows mobile
well im pretty sure i would know if it got raised or not..im not and idiot...at least i hope not...i had a breakpoint set for when that function is called...and nothing happens...it appears as though the event is not being raised...
-
May 26th, 2007, 07:54 PM
#6
Re: [2.0] ApplicationExit windows mobile
How and where are you shutting down the app?
Last edited by jmcilhinney; May 26th, 2007 at 09:38 PM.
-
May 29th, 2007, 09:09 AM
#7
Thread Starter
Hyperactive Member
Re: [2.0] ApplicationExit windows mobile
im closing it with the "OK" button in the top right corner...
-
May 29th, 2007, 06:01 PM
#8
Re: [2.0] ApplicationExit windows mobile
Hmmm... I thought I might be able to help but I don't actually have Mobile experience so this is obviously outside my area of expertise. I don't know anything about any OK button's in top-right corners so I can be of no further use to you I'm afraid. Sorry.
-
May 30th, 2007, 11:13 AM
#9
Thread Starter
Hyperactive Member
Re: [2.0] ApplicationExit windows mobile
the ok is cause my
this.MinimizeBox = false;
i dont know if that makes a difference
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|