vb.net - Setting up a 'Timeout' feature in windows forms app -
Someone knows how to create a timeout feature in a Windows app app.
App event is run, but I'm thinking of using a timer in some way which says for 10 minutes, and the timer stays, then we're out of the user.
The problem I have is how can I reset the timer
Cheers
You can use System.Windows.Forms.Timer
.
, you can drag it from your toolbox to the designer surface .
Interval
Use the asset window to set the time period (milliseconds) you want the property to, enabled
property to be set to false To load
set the timer enabled
property to true.
(The sample in the event handler is written using C # - this
Private Zero form1_load (object sender, eventAgps E) {timer1.Enabled = true;}
To register on the event Double click on the timer tick event, and close the form on the timer tick
Private Zero Timer 1_Tick (object sender, event strings) e) {Close ();}
Comments
Post a Comment