Can I wait for the download to complete and then execute the next line of code?
WebClient wb = new WebClient();
wb.DownloadFileAsync(new Uri("url"), @"c:\tmp\file.exe");
wb.DownloadProgressChanged += wb_DownloadProgressChanged;
wb.DownloadFileCompleted += wb_DownloadFileCompleted;
I know that I can just use wb.DownloadFile, but that will not give feedback on the download.
source
share