Hi,
I am working on VB 2010 windows application... Now client want to loged user logout if he/she not working in application for a particular time frame... Just like screensaver work in windows os.
Can anybody suggestion on this.. how to do it...
Printable View
Hi,
I am working on VB 2010 windows application... Now client want to loged user logout if he/she not working in application for a particular time frame... Just like screensaver work in windows os.
Can anybody suggestion on this.. how to do it...
It would depend how you are able to check for keyboard and mouse inputs. But I believe you would want two timers for this. One continuously checking for any keyboard or mouse input. If it detects nothing, it enables the second timer where it would count up. If the first timer detects input at any time, it resets the counter and disables timer2.
As for the specific code, one of the more experienced coders may know how to check this. There would be a difference between checking system wide and just your program though. The simplest imo would be within your own program, though that has limitations.