多線程我剛剛學會在VB.net多線程的一些基本近日,因爲我需要多線程的一個過程 我的代碼是:一個過程vb.net
Private Sub btnLoadNow_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim T1 As New Thread(AddressOf myprocess)
T1.Start()
Dim T2 As New Thread(AddressOf myprocess)
T2.Start()
Dim T3 As New Thread(AddressOf myprocess)
T3.Start()
Dim T4 As New Thread(AddressOf myprocess)
T4.Start()
Dim T5 As New Thread(AddressOf myprocess)
T5.Start()
End Sub
Private Sub myprocess()
'my Process Codes
End Sub
但這個代碼有錯誤,我怎麼能做到這一點?
「此代碼具有錯誤」 是不恰當的問題說明。 –