G
Guest
Hi,
I used thread to start a process which needs one or more arguments, my
question is who to call the function from a thead? My codes are following:
Private Sub myProcess(ByVal max as integer)
Dim i As Integer
For i = 0 To max
Threading.Thread.Sleep(100)
Next
End Sub
Dim tdProcess As Threading.Thread = New Threading.Thread(AddressOf myProcess)
tdProcess.Start()
I used thread to start a process which needs one or more arguments, my
question is who to call the function from a thead? My codes are following:
Private Sub myProcess(ByVal max as integer)
Dim i As Integer
For i = 0 To max
Threading.Thread.Sleep(100)
Next
End Sub
Dim tdProcess As Threading.Thread = New Threading.Thread(AddressOf myProcess)
tdProcess.Start()