Public Class frm_Main
Private Sub btn_Start_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Start.Click
Timer1.Start()
End Sub
Private Sub btn_Stop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Stop.Click
Timer1.Stop()
End Sub
Private Sub btn_Reset_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Reset.Click
tbx_Min.Text = "10"
tbx_Sec.Text = "00"
tbx_MilSec.Text = "00"
Timer1.Stop()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Do Until tbx_Min.Text = "00"
Do Until tbx_Sec.Text = "00"
Do Until tbx_MilSec.Text = "00"
Dim MilSec1 As Integer
MilSec1 = tbx_MilSec.Text
MilSec1 = MilSec1 - 1
tbx_MilSec.Text = MilSec1
Loop
Dim Sec1 As Integer
Sec1 = tbx_Sec.Text
Sec1 = Sec1 - 1
tbx_Sec.Text = Sec1
Loop
Dim Min1 As Integer
Min1 = tbx_Min.Text
Min1 = Min1 - 1
tbx_Min.Text = Min1
Loop
Console.Beep()
End Sub
End Class
So far, this is my code. I am designing a Customizable Youtube Countdown Timer, and I am having some issues.
Whenever I start up the Form and press the "btn_Start" Button, the entire form freezes, and requires to be shutdown from Visual Basic Express 2010, where I am working, or through Task Manager.
Just in case... btn_ is my prefix for Buttons
tbx_ is my prefix for Textboxes
Please help me, because my friends and I currently need this form to work...