|
-
Jun 25th, 2007, 06:41 AM
#1
Thread Starter
Fanatic Member
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 
-
Jun 26th, 2007, 10:00 AM
#2
Frenzied Member
Re: Detect user interaction
Hi,
set keypreview on the form, and save the date/time on the keydown/keypress event?
Pete
-
Jun 26th, 2007, 10:15 AM
#3
Thread Starter
Fanatic Member
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 
-
Jun 26th, 2007, 10:31 AM
#4
Frenzied Member
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
-
Jun 26th, 2007, 10:35 AM
#5
Thread Starter
Fanatic Member
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 
-
Jun 26th, 2007, 10:42 AM
#6
Thread Starter
Fanatic Member
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 
-
Jun 26th, 2007, 10:45 AM
#7
Frenzied Member
Re: Detect user interaction
Hi,
that is why you set keypreview to true - that means the form receives events before the control does
Pete
-
Jun 26th, 2007, 10:51 AM
#8
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|