No activity on a form...

  • Thread starter Thread starter Simon Verona
  • Start date Start date
S

Simon Verona

What is the easiest way of tracking whether there has been any activity on a
form at all in a specific time ?

I want to have a form that automatically "timeouts" after a period of no
activity. I don't really want to have to go through every button, box and
catch every mouse-click etc. to know that the user is actively using the
form - I just want to be able to somehow have a function called which can
then close the form if there has been no activity for a few minutes.

I don't actually mind if the "no activity" is just on that form, or I have
to rely on no-activity on the whole pc for a period of time..

Many thanks in advance

Simon
 
What is the easiest way of tracking whether there has been any activity on
a form at all in a specific time ?

I want to have a form that automatically "timeouts" after a period of no
activity. I don't really want to have to go through every button, box and
catch every mouse-click etc. to know that the user is actively using the
form - I just want to be able to somehow have a function called which can
then close the form if there has been no activity for a few minutes.

I don't actually mind if the "no activity" is just on that form, or I have
to rely on no-activity on the whole pc for a period of time..

Many thanks in advance

Simon

What about starting a timer and a counter in the Form Activate event then
comparing the time difference with the countdown in the timer tick event?
 
Not sure I'm following!

The form activate event is only fired when the form is first opened? Are
you suggesting that the timer would be reset when the Form Activate event is
fired? Or have I gotton confused (I'm afraid I'm easily confused <G>).

Regards
Simon
 
The form activate event is only fired when the form is first opened? Are
you suggesting that the timer would be reset when the Form Activate event
is fired? Or have I gotton confused (I'm afraid I'm easily confused <G>).

Form Activate is fired every time the from is activated.
 
Back
Top