Create a new thread in VB.Net
Create a new thread with ease.
AI
Shrnutí AI: 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.
Zdrojový kód
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>
Původní komentáře (3)
Obnoveno z Wayback Machine