question about automatic logout with winform

Y

YongSeung Kim

Hi,

I would like to achieve automatic logout after a certain period time with no
activity.
I made an public variable (e.g IsAcccessGranted ) and set it from a
database.
I want to make a logged-in user log-out when He does not do any action with
the application.
Is there anyway good way to do it with WinForm?

Yong
 
Y

YongSeung Kim

Thanks

How do you detect "no activitiy"?
Would you give me bit more clue on it?

Yong
 
?

=?Windows-1252?Q?Jos=E9_Manuel_Ag=FCero?=

Hello YongSeung Kim,

You can set a timer in your application and handle the Application.Idle event to restart the timer. When this timer fires, your application will have been inactive for it's interval.

Regards.

"YongSeung Kim" <[email protected]> escribió en el mensaje | Hi,
|
| I would like to achieve automatic logout after a certain period time with no
| activity.
| I made an public variable (e.g IsAcccessGranted ) and set it from a
| database.
| I want to make a logged-in user log-out when He does not do any action with
| the application.
| Is there anyway good way to do it with WinForm?
|
| Yong
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top