title: How do I pass multiple variables to the bw_ProgressChanged function
body: <p>I have a small VB.Net program that shows a progress form. On that box, I show a progress bar and a percentage complete in a text box. Both of these can be derived by a single integer, but now I've been asked to put a 'Details' text box on the progress form, which updates with text to show how the job is doing.</p>
  
  <p>My question - how do I pass both the percentage, and the text details to the <code>ProgressChanged()</code> function? I've tried passing an array and an object, but I can't seem to get it right. Thanks.</p>
  
  <p>I'm calling the function like this (from the <code>bw_DoWork()</code> function) -</p>
  
  <pre><code>details = "Textbox details will go here"
  progress = (100 / (UBound(servers) + 1)) * (i + 1)
  bw.ReportProgress(progress) ' How do I also pass 'details'?
  </code></pre>
  
  <p>And here is the function it self -</p>
  
  <pre><code>Private Sub bw_ProgressChanged(ByVal sender As Object, ByVal e As ProgressChangedEventArgs)
  
      Me.proProgress.Value = e.ProgressPercentage
      Me.txtProgress.Text = e.ProgressPercentage.ToString() &amp; "% complete..."
      'Me.txtDetails.Text = Me.txtDetails.Text &amp; IIf(Me.txtDetails.Text &lt;&gt; "", vbCrLf, "") &amp; e.details ' How do I also pass 'details'?
  
  End Sub
  </code></pre>