I used WebClient but it sometimes hangs when loading a file of 2 GB in size and writes that the file was successfully loaded.
What can I use to download a file of this size?
private void Download_Click(object sender, EventArgs e) { MessageBox.Show("ΠΠΎΠΆΠ°Π»ΡΠΉΡΡΠ° ΠΎΠΆΠΈΠ΄Π°ΠΉΡΠ΅ Π½Π°ΡΠΈΠ½Π°Π΅ΠΌ ΠΏΡΠΎΡΠ΅ΡΡ ΡΠΊΠ°ΡΠΈΠ²Π°Π½ΠΈΠ΅ ΠΊΠ»ΠΈΠ΅Π½ΡΠ°", "ΡΠ΅ΡΡ", MessageBoxButtons.OK, MessageBoxIcon.Information); WebClient client = new WebClient(); client.Proxy = null; client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(client_DownloadProgressChanged); client.DownloadFileCompleted += new AsyncCompletedEventHandler(client_DownloadFileCompleted); client.DownloadFileAsync(new Uri("http://***/test.7z"), @ "test.7z"); } void client_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e) { PicBoxPB.Value = e.ProgressPercentage; } void client_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e) { MessageBox.Show("ΠΠ»ΠΈΠ΅Π½Ρ ΡΡΠΏΠ΅ΡΠ½ΠΎ ΡΠΊΠ°ΡΠ°Π»ΡΡ,ΠΠΆΠΈΠ΄Π°ΠΉΡΠ΅ ΠΈΠ΄Π΅Ρ ΠΏΡΠΎΡΠ΅ΡΡ ΡΠ°ΡΠΏΠ°ΠΊΠΎΠ²ΠΊΠΈ.", "ΡΠ΅ΡΡ", MessageBoxButtons.OK, MessageBoxIcon.Information); }