I'm making a program that will sign people and preform automated things when logged in to a website. I have a list box of usernames and passwords. I know how to go through them and such but I am trying to make this multi threaded. I need to know if there is some way to create a specific number of threads for the number of items in the list box and if possible, have them numbered 0, 1, 2 etc.
vbnet Code:
For i As Integer = 0 To lbAccs.Items.Count - 1 Me.Main = New System.Threading.Thread(AddressOf TreeSub) Me.Main.IsBackground = True Me.Main.Start() 'if they stop the program before all threads have been created If cmdStart.Text = "Start" Then SetText(lbLog, Now & " : Program Stopped") End If Next
Any help would be great. Thanks.




Reply With Quote