G
Gerrit
System.Windows.Forms.Timer
HTH,
Gerrit
HTH,
Gerrit
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
* "Gerrit said:System.Windows.Forms.Timer
Alok said:I actually had thinking about this.
But, how do you know, when the user last worked ????
Do you mean to say that i trap all user movements like keyboard, mouse
etc... ???
TIA![]()



Gerrit said:I guess that depends on your app and what the user does within it.
You could attach to the Application.Idle event, check the active control and
store it. Set the timer to fire every 20 minutes and reset it when the "new"
activecontrol is not the one you have stored (via the Application.Idle
event). But there are probably more elegant ways to do it.
Another idea would be track when the user uses the keyboard (use the form's
KeyPreview) and/or mouse.
HTH,
Gerrit

capture all key strokes using the parent form's events.Gerrit Schunk said:AFAIK, Setting KeyPreview = True on the parent form should allow you to
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.