Results 1 to 8 of 8

Thread: Detect user interaction

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    734

    Unhappy Detect user interaction

    Hi guys,
    Is there a way to detect that last time the user interacted with their pda (either a screen tap or a button press)?
    I am using vb.net cf3.0.

    Thanks in advance for any help
    If your problem has been solved then please mark the thread [RESOLVED].
    If i have helped then please Rate my post

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Detect user interaction

    Hi,
    set keypreview on the form, and save the date/time on the keydown/keypress event?

    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    734

    Re: Detect user interaction

    I'm not sure i fully understand. Where is the key preview setting for the form because i cant see it in the forms properties and also will the keydown/keypress capture when the user taps the screen of their pda with the stylus?

    Thank you for your reply
    If your problem has been solved then please mark the thread [RESOLVED].
    If i have helped then please Rate my post

  4. #4
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Detect user interaction

    Hi,
    keypreview is there in the form properties, after the 'icon' property, and that will capture any presses on the d-button. Mousedown will intercept any taps, and you can use the hardware button control to pick up button presses?

    This is assuming you are using VS2005

    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    734

    Re: Detect user interaction

    Sorry i found it! lol I'm havin one of those days today! Lol I'll try it out and let you know how i get on, Thanks so far
    If your problem has been solved then please mark the thread [RESOLVED].
    If i have helped then please Rate my post

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    734

    Re: Detect user interaction

    A quick question i have, if i have objects on the screen then will the mouse events fire when the screen is tapped over them instead of on the form itself?
    If your problem has been solved then please mark the thread [RESOLVED].
    If i have helped then please Rate my post

  7. #7
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Detect user interaction

    Hi,
    that is why you set keypreview to true - that means the form receives events before the control does

    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    734

    Re: Detect user interaction

    Just fyi for anybody who has this problem in the future. For each object on my form i've had to add some code into the mouse events because it wasn't being picked up by just the form itself.

    Hope this helps.
    Last edited by Kimmy4; Jun 27th, 2007 at 05:08 AM.
    If your problem has been solved then please mark the thread [RESOLVED].
    If i have helped then please Rate my post

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