|
-
Jul 17th, 2008, 08:42 AM
#1
Thread Starter
Hyperactive Member
[3.0/LINQ] Detect activity on the application
Hi There,
I would like to know what is the best way to detect if a user had any activity on the application I wrote as I need to do an automatic log off function for the application if the user did not work on the application at all.
Regards
PlayKid
-
Jul 17th, 2008, 12:33 PM
#2
Re: [3.0/LINQ] Detect activity on the application
Handle all keyboard and mouse events in a single method wherein you reset a timer each time the event is raised (implying that the timer is reset whenever the users moves the mouse over the form or presses keys when using the application).
This could be quite intrusive though, so you may want to consider handling very specific events such as just mouse clicks, keypresses, etc.
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
|