Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a timer to close win app if no activity

Status
Not open for further replies.

kcj402003

Programmer
Sep 2, 2003
50
US
I want to use a timer to automatically close a windows app if there is no user activity for a set time. Can anyone help me with this.
 
The first thing that jumps to my mind is to reset the timer each time an event is run - ie. button clicked -> reset the timer.

Not super efficient I am sure, but should do the the trick...
 
You can use the mouse move event on the form

DotNetDoc
M.C.S.D.
---------------------------------------

Tell me and I forget. Show me and I remember. Involve me and I understand.
- Anonymous Chinese Proverb

-----------------------------------

If you can't explain it simply, you don't understand it well enough.
- A. Einstein





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top