Actually the question has already been asked. Here is the code for the download itself.
using (var request = new HttpRequest()) { HttpResponse response = request.Get(link); response.ToFile("file"); } But how to display progress on the ProgressBar?
Well, there seems to be a DownloadProgressChanged event - you should subscribe to it and that's it. Type
request.DownloadProgressChanged += (value) => {progressBar1.Value = value;} request.DownloadProgressChanged += DownloadProgressBar(); ? But how can I in the method find out the download status from DownloadProgressChangedEventArgs e ? - MaxxNet github.com/X-rus/xNet, then OnDownloadProgressChanged += DownloadProgressBar , where `DownloadProgressBar (DownloadProgressChangedEventArgs e) {/ * Processor * /}. The main thing that the signature with the delegate of the event coincided. - SergeySource: https://ru.stackoverflow.com/questions/715480/
All Articles
.Netitself and done much better. - Sergey