title: How to use progress bar when background is busy
body: <p>I want to set a progress bar for my application.</p>
  
  <p>I am using a background to download somefiles from my server.</p>
  
  <p>It would be nice if I set a progress bar for that.</p>
  
  <p>I know to use </p>
  
  <pre><code>ProgressBar.Value = 5;
  </code></pre>
  
  <p>and more.</p>
  
  <p>but I want to use progress bar.'</p>
  
  <p>I am using this code for progress bar</p>
  
  <pre><code>private void bgDownload_ProgressChanged(object sender, ProgressChangedEventArgs e)
  {
      this.downloadProgressBar.Value = e.ProgressPercentage;
  }
  </code></pre>
  
  <p>but its not working.</p>
  
  <p>Can any one say how can I do it.</p>
  
  <p>Thanks In Advance</p>