title: How to pass multiple parameters in thread in VB
body: <p>I'm looking to pass two or more parameters to a thread in VB 2008.</p>
  
  <p>The following method (modified) works fine without parameters, and my status bar gets updated very cool-y.
  But I can't seem to make it work with one, two or more parameters.</p>
  
  <p>This is the pseudo code of what I'm thinking should happen when the button is pressed:</p>
  
  <pre><code>Private Sub Btn_Click() 
  
  Dim evaluator As New Thread(AddressOf Me.testthread(goodList, 1))
  evaluator.Start()
  
  Exit Sub
  </code></pre>
  
  <p>This is the testthread method:</p>
  
  <pre><code>Private Sub testthread(ByRef goodList As List(Of OneItem), ByVal coolvalue As Integer)
  
      StatusProgressBar.Maximum = 100000
      While (coolvalue &lt; 100000)
          coolvalue = coolvalue + 1
          StatusProgressBar.Value = coolvalue
          lblPercent.Text = coolvalue &amp; "%"
          Me.StatusProgressBar.Refresh()
      End While
  
  End Sub
  </code></pre>