Hi all
I'm trying to exit application when the user is not using it for a set time.
I tried to reset a timer on mouse move .. but the app crash ...
Is there a better way?
You need to provide more information. What did your code do? Why it crashed?
Create a timer that ticks every 10 seconds. Store the current time in a global variable in the MouseMove event. Check whether x seconds have passed in the timer tick event.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.