方法1My.Computer.Network.DownloadFile("http://www.longda.cn/mm.rar", "d:\mm.rar", "", "", True, 300, True)方法2
Dim client As WebClient = New WebClient()
AddHandler client.DownloadFileCompleted, AddressOf myWebclient_DownloadFileCompleted
AddHandler client.DownloadProgressChanged, AddressOf myWebclient_DownloadProgressChanged
Dim uri As Uri = New Uri("http://www.longda.cn/mm.rar")
client.DownloadFileAsync(uri, "d:\mm.rar") '只有异步下载才可以激活进度条
Dim client As WebClient = New WebClient()
AddHandler client.DownloadFileCompleted, AddressOf myWebclient_DownloadFileCompleted
AddHandler client.DownloadProgressChanged, AddressOf myWebclient_DownloadProgressChanged
Dim uri As Uri = New Uri("http://www.longda.cn/mm.rar")
client.DownloadFileAsync(uri, "d:\mm.rar") '只有异步下载才可以激活进度条
另外转换成c#代码要怎么转换啊,别笑我啊,我真的是新手..
我这是windows程序,webcilent这个类是web程序里的吧?