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:
  1. For i As Integer = 0 To lbAccs.Items.Count - 1
  2.         Me.Main = New System.Threading.Thread(AddressOf TreeSub)
  3.         Me.Main.IsBackground = True
  4.         Me.Main.Start()
  5.         'if they stop the program before all threads have been created
  6.             If cmdStart.Text = "Start" Then
  7.                 SetText(lbLog, Now & " : Program Stopped")
  8.             End If
  9.         Next

Any help would be great. Thanks.