Multi Threading

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
User avatar
dos mes





Posts: 2158
Joined: Thu Dec 29, 2005 9:58 pm
Location: Syracuse, NY

Multi Threading

Post by dos mes »

Anyone that knows a good amount of vb probably knows what the Threading function of vb.net is.

My problem is that my thread wont be recognized by visual studio. My code is

Code: Select all

Private Sub TC1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TC1.Tick
        Dim myThread As System.Threading.Thread
        myThread = New System.Threading.Thread(AddressOf Me.Check1)
        myThread.Start()
    End Sub
My problem is that it doesn't allow the

Code: Select all

New System.Threading.Thread(AddressOf Me.Check1)
line. And it doesn't allow me to make it just "New Thread" instead of the rest of giberish.

If anyone can help it would be greatly appreciated because I really need to be able to create another thread to run a very laggy part of the application.
Post Reply