why when i add time lag to my program in the code ->
it does modify the textbox1.text to 4/3/2/1 it just waits 5 seconds and puts finished
what do i change?
Visual Basic:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = ""
TextBox1.Text = "5"
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
System.Threading.Thread.Sleep(1000)
TextBox1.Text = "4"
System.Threading.Thread.Sleep(1000)
TextBox1.Text = "3"
System.Threading.Thread.Sleep(1000)
TextBox1.Text = "2"
System.Threading.Thread.Sleep(1000)
TextBox1.Text = "1"
System.Threading.Thread.Sleep(1000)
TextBox1.Text = "Finished"
End Sub
what do i change?