VB.net - multithreading question
I havent got vb.net yet, thinking of purchasing it.
im just wondering, will
VB Code:
Public Sub thread1()
WB.Navigate "http://www.google.ca"
Do: Doevents: Loop until wb.busy = false
debug.print "Done"
End Sub
Public Sub thread2()
WB2.Navigate "http://www.google.ca"
Do: Doevents: Loop until wb2.busy = false
debug.print "Done"
End Sub
Public Sub AllThread()
'Combine the two subs in one sub so they can be
'fired at once
Me.thread1()
Me.thread2()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim thrd As Threading.Thread
thrd = New Threading.Thread(AddressOf AllThread)
thrd.Start()
End Sub
will that Doevents run only for that specific thread? so that each thread will wait until the browser is done loading? or will once thread1 execute, the doevents will make the whole program wait for it to be done?