can i make idle system for my application...so when user login system & idle for 30 minutes, system automaticly logoff...

i only hve code in c#...anyone help me..

Recommended Answers

All 6 Replies

what is a system in your case ?

is it a PC or an application ?

What will log off ?

i create inventory system using vb.net..so when user not do anything to system, automaticly form will close...

so you want the application to logout not the system, right ?

yup...

you need to use timer

1. in a timer check for user activities (KEYSTROKES and MOUSE MOVEMENTS)
2. each time there is any activity reset the timer.
3. once time interval is desired duration, call LOG OFF routine of your application.

so i need to use timer control for each form ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.