See something I posted in July 2001 called "Detect user idle time" in the Archives - Downloads section of the VB thread.
>I don't think timer would be a good idea coz the timer interval can not be set more than a minute, which can not be called as an inactive period.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com