title: Backgroundworker won't report progress
body: <p>I have a background worker running a long database task.  i want to show the progress bar while the task is running.  Somehow the background worker won't report the progress of the task.  </p>
  
  <p>This is what i have:</p>
  
  <pre><code>BackgroundWorker _bgwLoadClients;
  
  _bgwLoadClients = new BackgroundWorker();
  _bgwLoadClients.WorkerReportsProgress = true;
  _bgwLoadClients.DoWork += new DoWorkEventHandler(_bgwLoadClients_DoWork);
  _bgwLoadClients.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_bgwLoadClients_RunWorkerCompleted);
  _bgwLoadClients.ProgressChanged += new ProgressChangedEventHandler(_bgwLoadClients_ProgressChanged);
  _bgwLoadClients.RunWorkerAsync(parms);
  
  private void _bgwLoadClients_DoWork(object sender, DoWorkEventArgs e)
  {
      DataTable dt = getdate();
      e.Result = dt;
  }
  
  void _bgwLoadClients_ProgressChanged(object sender, ProgressChangedEventArgs e)
  {
      progressBar1.Value = e.ProgressPercentage;
  }
  </code></pre>
  
  <p>I am doing this in WPF, but i guess it won't make a difference.</p>
  
  <p>Thanks in advance</p>