Muitithreading
Before I start I'm going to assume you know the basics, such as Imports, classes, Subs, Variables and the syntax of vb. If you don't go here HERE and start going threw the tutorials.
Ok so now on to muiltithreading, you can thank of muiltithreading as multitasking in VB.NET. You can start a sub but still have the other on going. Its A good thing to learn if you want to make a bot, viewer, spammer are anything really.
Step one - Add the controls
Controls (Click to View)
Step two - Add 2 subs
Ok so now I'm going to add two subs, One is going to make my first label count up the other will make the other label count up. To do this your going to make a while loop that make a label go to 10 in each one then pause for 1000 millisec's like so..
Image (Click to View)
Step three - button one (No muiltithreading)
Ok so now you have the 2 subs to count the labels up, now we have to set the 2 buttons, one will muitithread one wont. First go to the one that wont and make it call both of the subs you just made like so..
Image (Click to View)
Step 4 - button two (muiltithreading)
Last but not least we have to and the muitithreading button. This is fairly easy. First import system.threading. next declare 2 threads. After that you set the threads to the address of the sub as show below. You will find when you click the button without muiltithreading it will basically freeze but if you press the other button the labels will count up.
Image (Click to View)
PROFIT!!


![[Image: Xtddh8V.png]](https://i.imgur.com/Xtddh8V.png)


![[Image: eQhTFwh.gif]](https://i.imgur.com/eQhTFwh.gif)