I am developing a system that when user doesn't do anything on it, not clicking any button, or typing text on the text box for specific length of time for example about 5 minute the system will return to it's main window?
How to do that ?
I am developing a system that when user doesn't do anything on it, not clicking any button, or typing text on the text box for specific length of time for example about 5 minute the system will return to it's main window?
How to do that ?
With a limited set of relevant controls, your best bet is for each child window to have a Timer
or DispatcherTimer
member. In your buttons' and text boxes' event handlers, reset the timer. Your Elapsed
handler can close the (child) window, set the focus to the parent, or whatever else you might need.