Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label2.Text = "before"
Sleep(3000)
Label1.Text = "after"
End Sub
When i click the button1, the above code executes. Actually i should display label2 with string "before" and after 3 seconds label1 with string "after". But this is not happening both the labels with name "before" and "after" are displaying after 3 seconds after the form loads and also both the labels are displaying at once.
please solve my problem.