You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
January 7th, 2009, 07:17 AM
jomet
Guest
Posts: n/a
User idle Time
Hi,
I have a windows MDI application (C# 2005).
I want to log out a user after an idle time of 10m.
You can use your own timer, launch a thread that counts time, probably ask windows (for sure there is an idle timer somewhere)...
What are you looking for?
__________________
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification : WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the proof.
================================================== =========
January 7th, 2009, 08:35 AM
jomet
Guest
Posts: n/a
Now i am trying with
Application.Idle += new EventHandler(OnIdle);
and in OnIdle event starting a timer, and the timer after a specified time fires logout() function.
Can u little more explain any better method?
Thanks