title: Only 1 of 2 progress bars gets updated in BackgroundWorker
body: <p>I have a simple form with 2 progressbars and 1 backgroundworker on it.  I have 2 loops (one within the other) and I'd like to report back the progress of each loop once incremented.  Here's the code I have:</p>
  
  <pre><code>private void buttonStart_Click(object sender, EventArgs e)
  {
      workerCustomers.RunWorkerAsync();
  }
  
  private void workerCustomers_ProgressChanged(object sender, ProgressChangedEventArgs e)
  {
      progressBar1.Value = e.ProgressPercentage;
      progressBar2.Value = (int)e.UserState;
  }
  
  private void workerCustomers_DoWork(object sender, DoWorkEventArgs e)
  {
      for (int customer = 0; customer &lt; 50; customer++)
      {
          int customerPercentage = ++customer * 100 / 50;
          workerCustomers.ReportProgress(customerPercentage, 0);
  
          for (int location = 0; location &lt; 500; location++)
          {
              int locationPercentage = ++location * 100 / 500;
              workerCustomers.ReportProgress(customerPercentage, locationPercentage);
          }
  
          workerCustomers.ReportProgress(customerPercentage, 0);
      }
  }
  </code></pre>
  
  <p>When the program runs, progressbar1 gets updated just fine, but progressbar2 never moves.  If I run it through the debugger, I can see the value of progressbar2 being changed, there's just no change graphically.  Any ideas?</p>