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