title: Webclient progress will not show up in progressbar
body: <p>I am trying to download a file with a webclient from a server. This works very good. But when I try to show the download progress in a progress bar, it does not give me any progress to see.</p>
  
  <p>I am trying to download the file with the <strong>DownloadFileAsync</strong>-method to have an own thread for it all in order to prevent performance problems or freezes.</p>
  
  <p>I declared the WebClient outside any subs or events:</p>
  
  <pre><code>private WebClient updateDownloader = new WebClient();
  </code></pre>
  
  <p>This looks like that in the <strong>Form.Shown</strong>-Event:</p>
  
  <pre><code>updateDownloader.DownloadFileAsync(new Uri(UriGoesHere), PathToSave);
  </code></pre>
  
  <p>It is in a Try-Block.</p>
  
  <p>I created a sub like that to show the progress to the progressbar:</p>
  
  <pre><code>private void ProgressChanged(object sender, DownloadProgressChangedEventArgs e)
  {
      progressBar1.Value = e.ProgressPercentage;
  }
  </code></pre>
  
  <p>In the <strong>Form-Load</strong>-Event I created the eventhandler:</p>
  
  <pre><code>updateDownloader.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged);
  </code></pre>
  
  <p>This should work in theory, but it does not, I already visited MSDN and saw some information that only some methods are working, but implementing this did not help.</p>
  
  <p>It never reaches this one. What am I doing wrong? If you need some more code parts, tell me.</p>