0

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 ?

Lucifer
  • 29,392
  • 25
  • 90
  • 143
Kuriyama Mirai
  • 867
  • 5
  • 17
  • 37

1 Answers1

0

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.

John C
  • 1,931
  • 1
  • 22
  • 34