Im going crazy with this i dont understand at all invokeee i want to run 2 subs at the same time when i click a button check 1 and check 2 are 2 subs when i click a button it calls sub pi which then calls the 2 forms but idk how.. this is the code for callin the 2 subs i want together to runvb.net Code:
Public Sub pi() Dim thrMyThread As New System.Threading.Thread(AddressOf check2) thrMyThread.Start() Dim thrMyThread1 As New System.Threading.Thread(AddressOf check1) thrMyThread1.Start()End Sub Private Sub check2() textbox1.text="12" end sub Private Sub check1() textbox2.text="14" end sub
i figure it out, i just want to know if im doing it right...cuz apparently both are running at the same time..
this is the new part in the code
Code:Dim thrMyThread As New System.Threading.Thread(AddressOf check2) thrMyThread.Start() Dim thrMyThread1 As New System.Threading.Thread(AddressOf check1) thrMyThread1.Start()End Sub




Reply With Quote