Any suggestions for an efficient method to have my application minimize itself when a period of time elapses and the user has no interaction with the form? It also must cancel the minimize if the user clicks on something else before the timeout.
For instance, user uses my application to launch something another program. They work in the newly spawned application, and my app needs to stay running, minimize, and be ready without re-launching it.
Currently, it's on a timer that is enabled once my tool is used. But if the user made a mistake, and tries to use it again, it will minimize while they try to use it. I thought about disabling the timer via the KeyDown or MouseDown events. Would that be a lot of overhead for the app to process each and every keystroke and mouse click, just to satisy this piece of it?
For instance, user uses my application to launch something another program. They work in the newly spawned application, and my app needs to stay running, minimize, and be ready without re-launching it.
Currently, it's on a timer that is enabled once my tool is used. But if the user made a mistake, and tries to use it again, it will minimize while they try to use it. I thought about disabling the timer via the KeyDown or MouseDown events. Would that be a lot of overhead for the app to process each and every keystroke and mouse click, just to satisy this piece of it?