Advertisement
7_2009-2012 System Services/ Functions #223667

Create a new thread in VB.Net

Create a new thread with ease.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
This is the way to make a thread in VB.Net, and its very easy:<br><br>
class myThread<br>
  sub newThread()<br>
    msgbox("Hello from another thread.")<br>
  end sub<br>
end class<br><br>
Now, place this code, where you want to start the thread:<br><br>
dim thread as new myThread()<br>
dim mThread as new system.threading.threadstart(addressof thread.newThread)<br>
dim oThread as new system.threading.thread(mThread)<br>
oThread.start()<br><br>
That's it, and it works compiled, etc.<br>
Original Comments (3)
Recovered from Wayback Machine