-
Jan 14th, 2010, 03:59 AM
#1
Thread Starter
Hyperactive Member
log off the application
Hi,
I developed a payroll software and i want if any body login to the payroll system
and they leave application ideal then after some time it will log off the user automatically
thanks
-
Jan 14th, 2010, 04:14 AM
#2
Re: log off the application
Use a timer and the mouse move over the application...
Something like, if there isn't any movement over the application GUI, start the timer, if mouse move, restart the timer, if not just put a limit to make the application logoff.
Rate People That Helped You
Mark Thread Resolved When Resolved
-
Jan 14th, 2010, 04:36 AM
#3
Thread Starter
Hyperactive Member
Re: log off the application
this is used in every forms or in main menu form
-
Jan 14th, 2010, 05:20 AM
#4
Re: log off the application
It depends of your application, if you have a mdi container form you only need in the main form, if you have several forms, you need to detect the move in every one..
Just use a global var with the limit of inactivity time, use a class to start and check the timer, in the mouse move in the form(s), just put something to start the timer. In the class just have a function that checks in every tick if the limit its reached...
Rate People That Helped You
Mark Thread Resolved When Resolved
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|