Results 1 to 9 of 9

Thread: [2.0] ApplicationExit windows mobile

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    448

    [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.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    448

    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...

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    448

    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...

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    448

    Re: [2.0] ApplicationExit windows mobile

    im closing it with the "OK" button in the top right corner...

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    448

    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
  •  



Click Here to Expand Forum to Full Width