|
-
Mar 17th, 2005, 09:19 PM
#1
Thread Starter
Lively Member
Questions on timer class and progressbar
Hi everybody
Below is a section of basic codes on how to use the timer class. May i know is there anyway i can implement a progressbar to indicate the 1 second interval for the timer class ? Thank you very much.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRx.Click
Timer1.Interval = 1000
Timer1.Enabled = True
'Do something if they respond ???
'If they respond in time turn off the timer
Timer1.Enabled = False
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
MessageBox.Show("Times Up!", "Timer")
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|