title: Download multiple files one at a time with progress in vb.net
body: <p>I am using vb.net. I need to download multiple files, but one at a time with download progress. I tried using downloadfile and downloadfileasync, but I must be doing something wrong, because the second file always sits at 0kb. </p>
  
  <p>Thanks in Advance 
  Kris</p>
  
  <pre><code>Dim downloadClient As New WebClient()
  downloadClient.Headers("Accept") = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
  downloadClient.Headers("User-Agent") = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.83 Safari/537.1"
  Dim dnldurl As String = "www.xyz.com/123.csv"
  downloadClient.DownloadFileAsync(New Uri(dnldurl), ("C:\bhav_csv.zip"))
  While (downloadClient.IsBusy = True)
  End While
  
  Dim result As Integer = MessageBox.Show("Data Downloaded for the date!!! Download more?", "Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
  
      If result = DialogResult.No Then
          Me.Dispose()
      End If
  </code></pre>
  
  <p>The user has to select the next file and to continue the process. But from the second one onwards, it would not download the file, or the downloaded file size would be 0kb.</p>