Hi i’ve plan to implement a feature like session in window application but not for the purpose to hold use information at first.the main purpose is to log out or at least prompt for login/password after session expires.I can’t find information regarding to timeout feature on it online.I would be very gratefull if someone can point me to some ressources or share his experience with us.Thanks for reading this
PS: i’m using C#.NET 2.0 with visual studio 2005 merci .
Hi i’ve plan to implement a feature like session in window application but not
Share
Your simplest solution would be to use a
Timerand set theDurationproperty to the number of milliseconds you’d like in your timeout. Whenever you encounter activity, you can just reset the timer by callingStopthen immediately callingStart. Place whatever code you’d like in theTimer‘sTickevent (assuming this is aSystem.Windows.Forms.Timer) and you’ll be all set.