README.md
December 4, 2022 ยท View on GitHub
Description
Create a new thread with ease.
More Info
| Submitted On | |
| By | Thomas Raben |
| Level | Intermediate |
| User Rating | 3.8 (15 globes from 4 users) |
| Compatibility | VB.NET |
| Category | System Services/ Functions |
| World | .Net (C#, VB.net) |
| Archive File |
Source Code
This is the way to make a thread in VB.Net, and its very easy:
class myThread
sub newThread()
msgbox("Hello from another thread.")
end sub
end class
Now, place this code, where you want to start the thread:
dim thread as new myThread()
dim mThread as new system.threading.threadstart(addressof thread.newThread)
dim oThread as new system.threading.thread(mThread)
oThread.start()
That's it, and it works compiled, etc.