How to know the user’s inactivity from an application. Actually if user is inactive for a period I have to trigger some code. How can I do this. Please help.
You will need a timer and reset it everytime there's some action, the attached sample displays a message box if the user has been inactive for 10 seconds.
Thank you for the quick reply. It was really helpful. But I have so many panels and buttons in my application. Do I need to write the reset code on all the button and panels click events? Is there any simple way to do this?
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.