Detect user inactivity in a VB.NET Windows Application (multiple forms)
Posted on 2004-10-12
I have a large VB.NET application with over 50 forms. There are ~100 functions that require a username and password to commit, and users are finding it a pain to have to continually type their usernames and passwords at each stage.
I want to move to a model that only prompts for a username & password if the application has been inactive (no keyboard of mouse events) for over 3
Since I have a large amount of forms and controls, resetting a timer from each individual control is a nightmare. Is there a way of detecting keypress and mouse events across all contols and forms in an application?
I've seen refences to the Application.idle event but no examples on how to call it.