c# - Execute function if no user action was performed after certain time -


is there simple way how implement function (in form_activated or form_load) if no action performed user after time app automaticly switch defaulf form? let's user log in(form change) , nothing , want system after 30 seconds automaticly execute "log out" function - go default form.

i think, have implement on own. implement property "lastuseraction" or in class, needs updated each time, when user performs action. implement timer or thread, checks time, if last user action older 30 secs. if true, perform application.exit() or form closing.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -