Re: Mouse activitiy

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Dev <hanudev@xxxxxxxxx> schrieb im Beitrag
<1192541248.769716.262240@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
i want to lock my application if there is no mouse activity for 30/60
seconds.
what is the way to do this.

Use the VB timer control:
- Set the timer interval
- Start (enable) the timer
- On any mouse action (MouseDown, MouseMove) restart the timer (interval =
0/...)

When the 'Timer' event of the timer is fired the interval has elapsed
without any mouse action (i.e. no mouse action for your application; mouse
action not related to your application are not covered by this).

--
----------------------------------------------------------------------
THORSTEN ALBERS Universität Freiburg
albers@
uni-freiburg.de
----------------------------------------------------------------------

.



Relevant Pages

  • Re: Form Shake
    ... "pmclinn" schrieb: ... Place a timer on the form and move the form within its 'Tick' event handler. ... M S Herfried K. Wagner ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Threaded timers
    ... Remy Lebeau schrieb: ... It depends on what your timer is actually doing, and what it accesses. ... As he is drawing something on screen, I guess a threaded approach will bring more problems than solutions... ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Start timer when form loads
    ... "Cor Ligthert" schrieb: ... > strange for me. ... I assumed that the OP placed a timer on a usercontrol and wants to disable ...
    (microsoft.public.dotnet.languages.vb)
  • Re: timer oder sleep?
    ... "Thomas" schrieb: ... > a timer or sleep? ... which one is better for min resources? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Start timer when form loads
    ... "Altman" schrieb: ... >I want to start a timer when an object loads, so I put the code to start it ... >in the constructor. ... >on a form in development it starts the timer. ...
    (microsoft.public.dotnet.languages.vb)