squishypentagon
New member
- Joined
- Aug 4, 2011
- Messages
- 1
- Programming Experience
- 1-3
Ok, so i have a program that i would like to re-run every 10 minutes. I have looked everywhere for a countdown timer and i had one that would count to 10 in a text box every 5 seconds and i wanted the program to wait until the text box was at 10 before re-running or continuing the code. So thats what i need help with... here is my code:
if i could get it to basically stop loading at the
VB.NET:
Private Sub Timer()
Me.tbResults.AppendText("Starting Timer....")Timer1.Enabled = True
Do Until TextBox1.Text = 10 If TextBox1.Text < 10 Then
(something to the equivalent of wait)
Else
Me.tbResults.AppendText("Loading Finished....")
End If
Loop
End Sub
'Actions to perform on each timer tick:
Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If TextBox1.Text < 10 Then
TextBox1.Text += 1 ' Add 1 to the value in Textbox.
Else
Timer1.Stop(
End If
End Sub
if i could get it to basically stop loading at the