README.md

December 4, 2022 ยท View on GitHub

Create a new thread in VB.Net

Description

Create a new thread with ease.

More Info

Submitted On
ByThomas Raben
LevelIntermediate
User Rating3.8 (15 globes from 4 users)
CompatibilityVB.NET
CategorySystem 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.