private void button4_Click(object sender, EventArgs e) { progressBar.Visible = true; WebClient webClient = new WebClient(); webClient.DownloadFile("http://www.spadille.net/aos075install.msi", @"C:\aos075install.msi"); webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged); webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed); private void ProgressChanged(object sender, DownloadProgressChangedEventArgs e) { progressBar.Value = e.ProgressPercentage; } private void Completed(object sender, AsyncCompletedEventArgs e) { MessageBox.Show("Download Abgeschlossen!"); progressBar.Visible = false; System.Diagnostics.Process.Start("\\aos075install.msi"); } private void button5_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("\\Ace of Spades\\readme.txt"); } }
webClient.DownloadFile("http://www.spadille.net/aos075install.msi", @"C:\aos075install.msi");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)