title: Progress bar and running methods in background in backgroundworker
body: <p>I create a backgroundworker process in the form..</p>
  
  <pre><code> BackgroundWorker bw = new BackgroundWorker
          {
              WorkerReportsProgress = true,
              WorkerSupportsCancellation = true
          };  
  </code></pre>
  
  <p>Also, i have a progress bar control inside the form(progress bar minimum and maximum values are 1 and 100).</p>
  
  <p>In my  button click,</p>
  
  <p>where the click event will fire the actual method calls which are supposed to run in the background and in parallel, start showing the progress bar steps....</p>
  
  <pre><code>if (bw.IsBusy)
   {
      return;
   }
  
   bw.DoWork += (bwSender, bwArg) =&gt;
   {
     MethodCall1(); - Does some database insertions..
     MethodCall2(); - Does some database select...
   }
  
  bw.ProgressChanged += new ProgressChangedEventHandler(bw_ProgressChanged);
  
  bw.RunWorkerCompleted += (bwSender, bwArg) =&gt;
  {
  
    bw.Dispose();                  
  };
  
  bw.RunWorkerAsync();
  </code></pre>
  
  <p>For progress bar to show the progressing...</p>
  
  <pre><code>void bw_ProgressChanged(object sender, ProgressChangedEventArgs e)
  {
     progressBar.Value = e.ProgressPercentage;
  }
  </code></pre>
  
  <p>The issue i face is, progress bar is not stepping, it stands still and there is no progress bar's progress. </p>
  
  <p>I also tried inserting bw.ReportProgress(integervalue) in my actual methods, but, it didn't help. </p>
  
  <p>How can i have a backgroundworker thread handling method calls and in parallel display the progress of progress bar, after the method calls are done, i want to end the progress bar step.</p>