Results 1 to 3 of 3

Thread: [02/03] OK or X Button

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2006
    Posts
    108

    [02/03] OK or X Button

    How do i detect the OK or X Button for Pocket PC 2002, so if the user clicks the OK or X Button, it will prompt the user for something.

    I tried Form_Closing and Form_Closed and Form_Deactivate, but this 3 aren't the methods i want for the program.

    Can anyone help me out on this ?

  2. #2
    Member
    Join Date
    Oct 2005
    Location
    C:\Downloads at 87.105.109.239
    Posts
    39

    Re: [02/03] OK or X Button

    You should search help on Smart Devices forum rather than this.
    If my post is helpful please RATE IT! Thanks

  3. #3
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: [02/03] OK or X Button

    I have considered trying to figure that one out myself. I have read in a book on PDA programming that you can't actually trap that event because it doesn't fire anything. PDA programs don't normally close on their own, they simply hide themselves. You can see this by looking at the memory usage on the device. As long as the OS doesn't need the memory, your program will keep on running, even after you think you have exited. This can be an issue for database connections.

    I also remember reading something about how to cause the PDA to terminate the program rather than hiding itself, but I haven't been able to figure out where I read that. There was some simple property change needed, but I couldn't find it the one time I looked briefly.

    You will probably find that this is not a simple problem, since the form doesn't close. I was considering playing around with LostFocus, to see whether or not I could get something working, but never actually tried it. You might also try searching for API. Looking at the Mobile Dev forum, you will notice many posts by Strider with links to CF specific forums and resources that might have solutions for you.
    My usual boring signature: Nothing

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