"Nikolay Petrov" <(E-Mail Removed)> wrote in message
news:O%(E-Mail Removed)...
> Hi guys
> P.S. By inactivity I mean that the user don't move the mouse or use the
> keyboard (kind of what windows screen saver tracks), because the user may
> just look at the application forms without intecating with my app, but
work
> with something else.
>
You may be able to do this using the timer control.
Look at the events associated with the forms like keypress and mouseMove,
etc, to disable-then enable the timer - then when the timer's tick event
happens - do your thing - hide forms and show the login form which will in
turn show the forms being used and enable the timer again.
There may be other ways - but this is what comes to mind first.
Hal
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004