Hi,
Add a timer control on your main form. Set the timer interval.
Reset the form timer in the keypress event/mouse move event of
the form to prevent it from trigging the timer.
HTH
>How can I stop a program when the user not use the mouse or
>key board for 5 min. (This program must run all the time when some one use the program for security reasons)
>
>I appreciate any help regarding this
>Thak you
>Lal Senanayake
>
>E-mail
smbL46@hotmail.com
Best Regards
Virusim