Wrox Programmer Forums
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

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
Old January 7th, 2009, 07:17 AM
Posts: n/a
Lightbulb User idle Time


I have a windows MDI application (C# 2005).
I want to log out a user after an idle time of 10m.

like Screensavers. How to do it.

Advance thanks.
Old January 7th, 2009, 08:17 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi

Hello. This can be done in a lot of ways..

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?


================================================== =========
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 :
================================================== =========
I know that CVS was evil, and now i got the
================================================== =========
Old January 7th, 2009, 08:35 AM
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?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding User Forms at Run time RichRansom BOOK: Excel 2007 VBA Programmer's Reference ISBN: 978-0-470-04643-2 0 May 30th, 2008 11:49 AM
Track of another idle process in VB program simplyAns Pro VB 6 1 December 15th, 2006 02:41 PM
single user login at a time dayarprasad MySQL 1 June 23rd, 2006 11:08 PM
User date and time select and pass to query newbe Access 2 December 16th, 2005 08:59 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.