Also in C# sieht das ganze so aus:
Code:
System.Net.WebClient client = new System.Net.WebClient();
string url = "http://rarlab.com/rar/wrar393d.exe";
string filename = "winrar.exe"
client.DownloadFile(url, filename);
client.DownloadFileCompleted += new AsyncCompletedEventHandler(client_DownloadFileCompleted);
client.DownloadProgressChanged += new System.Net.DownloadProgressChangedEventHandler(client_DownloadProgressChanged);
}
void client_DownloadProgressChanged(object sender, System.Net.DownloadProgressChangedEventArgs e)
{
throw new NotImplementedException();
}
void client_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
{
throw new NotImplementedException();
}
DownloadFileCompleted = neues Event, dass sich aktiviert wenn der Download beendet ist.
DownloadProgressChanged = neues Event, dass sich aktiviert wenn beim Download etwas weiter geht.
Hoffe hab dir etwas geholfen, und ich dir eigentlich von Visual Basic.NET abrate und eher zu C# tendiere.
EDIT: das System.Net Zeugs ersparst du dir wenn du oben bei den "usings" das ganze einfügst, z.B.
using System.Collections.Generic;
using System.NET;