>>That article was very useful, however, I'm having a problem with the two timers. I'm actually using your code to pop up a login screen after a set period of Idle time, however, the timer which is binding the KeyPress & MouseDown events of each form seems to be resetting the first timer. This means that the timer which pops up my login screen after a set period of time will never kick in, as the binding timer event is set to run every 15 seconds. Do you know any way around this problem ??
>
>I don't know why the binding timer would reset the other one. I don't see anything in my code that would have that effect. You might try setting a breakpoint on the Reset method of the idle timer to see when it's getting called.
>
>Tamar
Thanks for that Tamar ...
Sorry for the delay getting back, but I was working on something else. The problem was that I was binding the MouseMove event which seems to fire even when the mouse isn't moving ... figured it out anyway, and now the whole thing's working great ...
Thanks again ...
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement