No activity on a form...

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
 
J

Jeff Gaines

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?
 
S

Simon Verona

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
 
J

Jeff Gaines

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.
 

Ask a Question

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.

Ask a Question

Top