VB.NET Tutorial 53 – MultiThreading (Visual Basic 2008/2010)

In this tutorial, we cover the concept of MultiThreading. Multi Threading allows an application to run different bits of code at the same time without causing your User Interface to become unresponsive. This tutorial will hopefully explain the concept of multithreading to you and we will continue with delegates in the next tutorial.

For more information, check out the website:


Sarthak Sharma says:

Can I use Multi Threading to DDoS Websites also?

peter schiller says:

Since VStudio 2012 it is possible to use Async with Await task.delay(xxx). It’s much more easy to use. You can run as much threads as you want.

Async Sub xxx()
do until i >1000
I +=1
await task.delay(100)

Nathanael Crapo says:

I like this tutorial upto the part where you used the cross threading. i found a way around that without doing the delegate thing and it was simple enough for me to learn all on my own.

Fly Rose says:

thank’s men for this tutorial

PlayThroughForYou says:

It would send many errors later on, all its doing is saying even if the application finds an error it would keep going, this is a bad thing. you want to invoke your threads rather than not checking for errors. look up invoking tutorials for real multi-threading. This is just the slum way of doing things and is really bad.

3mmakGaMrAH says:

actually, setting ‘CheckForIllegalCrossThreadCalls’ to false is important if your using multi-threading for security-purposes

Harish Ramasamy says:

Thank you for video tutorial. After starting the thread you haven’t mentioned anything about the thread abort or closing of thread. Hope it’s necessary to abort the thread while closing the form. But Great work dude! Well done !

DavidGoldštajn says:


Nathanael Crapo says:

or use an Enum as a status keeper and use a timer specific to managing those other threads from the main thread which want to access controls on the main thread.

rayags says:

some tutorial where delegates use????? help me XD

Grayman says:

thank you :)

DM says:

I have just add an updater in my application with the help of your Video: VB.NET Tutorial 40;
and so When I checked for update and then when I click anywhere on the form then the Form does not respond. (My internet connection is too slow, so that I causes the Problem While Checking for update too…)
So please Help me

Untitled Name says:

Great way to explain, thx

ThePassingVoid says:

You can also use “i += 1” to increment i by 1in the loop.

Colonel Baby says:

Very nice, when googling this I just end up with something that has 29347692837492837492834 lines of code just to show one small example -.-

This was very nice and simple, thanks.

3mmakGaMrAH says:

make a separate thread for each sub and try to break everything into subs so every action can have its space.
for example :
private sub compress1
choose file

end subprivate sub compress2
read file
end sub

private sub compress3
write to file
end sub

private sub compress4
end sub
then make a thread for each sub

50 Hz says:

That was very good.. 

stansarproductionz says:

this scouser is great, explains complicated concepts with ease. keep it up!!!

Henry Jpr says:

Thanks MUCH! It’s a shame you didn’t do the “Threading Using Delegate” tutorial. There are other tutorials on the subject, but I’m having trouble when a thread, from a module, attempts to update a control on a form in the UI Thread. I see nothing on that.

Amin Be says:

i have made cool example about multi-threading that will help you guys understand get here adf.ly /V3pou

owlglazing says:

Where is the Delegate post? My app is really big and multithreading doesn’t work.

Ghost.MajoRX says:

Tnx bro now im fixed my chat application auto refreshing… thank you a lot 😉

Alfred cancio says:

i just wanted to know if is it possible that an array of multithreading?

Prakash Dhimmer says:

Masssive thank u for crosscheck solution.

IMSSEvolution says:

Add to form load
Control.CheckForIllegalCrossThreadCalls = False

Nene Nartey says:

Thanks. very helpful

Dane Davis says:

great video, thanks!

misaik says:

u can use delegate too for mor security

Takondwa Makawa says:

PlayThroughForYou why shouldnt we use that checkforillegalcrossthreadcalls = false…what could end up happening?

K S says:

Very good example! very usable for high frequency transactions, reports, etc

R Parijs says:

Thank you very mucch for your explanation, very clears, now I undestand crossthreading

pranays94 says:

You are from Liverpool,arent you? 😛

Spanxxxx says:

I appreciate your videos. Thanks for your work.

Anthony Turner says:

Agreed. Using this approach seems bad practice and it’s a lazy programmers approach.

geiler elias radillo sarmiento says:

and if to run two forms at once as I could do this using threads

엠에스티시스템 says:


Phil Morris says:

Thank you for simplifying this concept! My UIs are always frozen and my progress bars are always ghetto (i += 1 and refresh, etc.) Now I’m gonna learn about delegates and get professional up in here… Um, where’s the next tutorial with the delegates? … TeachMeComputer! My career is in your hands! What are delegates and how do I use them?! :(

Jon Morris says:

doesnt work on wpf

Write a comment


Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles   Show Cars   Motorbikes   Scooters   Rims & Tires   Luxury BoatsFashion   Sunglasses   Luxury Watches   Luxury Purses   Jeans Wear   High Heels   Perfumes   Jewellery   Cosmetics   Shaving Helpers   Fashion HatsFooding   Chef Club   Fooding Helpers   Coktails & LiquorsSports   Sport Shoes   Fitness & Detox   Golf Gear   Racquets   Diving Equipment   Ski Gear   Snowboards   Surf Boards   Rollers & SkatesEntertainment   DIY Guides   Zik Instruments   Published Books   Music Albums   Cine Movies   Trading Helpers   Make Money   Fishing Equipment   Paintball Supplies   Trading Card Games   Telescopes   Knives   VapesHigh Tech   Flat Screens   Tech Devices   Camera Lenses   Printers   USB Devices   PC Hardware   Network Gear   Cloud Servers   Software Helpers   Programmer Helpers   Mobile Apps   Hearing AidsHome   Home Furniture   Home Appliances   Beddings   Floor Layings   Barbecues   Aquarium Gear   Safe Boxes   Office Supplies   Security Locks   Cleaning ProductsKids   Baby Strollers   Child Car Seats   Remote ControlledTravel   Luggages & Bags   Airlines Seats   Hotel Rooms   Fun Trips   Cruise Ships   Mexico Tours