T
tony wong
i have 2 questions
1. click button1, button1.text run. click button2, button2.text run.
2. multithreading - 2 buttons run at the same time.
Thanks a lot.
*******************************
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click, Button2.Click
Dim a As Integer
For a = 1 To 500
Button1.Text = a
Application.DoEvents()
Next
End Sub
1. click button1, button1.text run. click button2, button2.text run.
2. multithreading - 2 buttons run at the same time.
Thanks a lot.
*******************************
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click, Button2.Click
Dim a As Integer
For a = 1 To 500
Button1.Text = a
Application.DoEvents()
Next
End Sub