G
Gerrit
System.Windows.Forms.Timer
HTH,
Gerrit
HTH,
Gerrit
* "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