如何让Visual Basic更快地下载文件{help} [英] how to make Visual Basic download a file faster {help}

查看:133
本文介绍了如何让Visual Basic更快地下载文件{help}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下代码进行下载:

  Dim  wc  As  System.Net.WebClient 
私有 Sub Button1_Click( ByVal sender As System。 Object ByVal e As System.EventArgs) Handles Button1.Click
wc = System.Net.WebClient()
wc.DownloadFileAsync( Uri( URL), C:\



我有良好的互联网连接和直接链接转移Internet Download Manager上的速率为500.385 kb /秒。

那么如何c我在VB下载速度更快?

VB中的速度真的很慢



任何代码?



谢谢:)

解决方案

我找到了这篇优秀的CP文章:一个多线程C#分段下载管理器

但这篇文章是用C#编写的,你需要将整个项目转换为VB.NET,或者只是编译为库并在你的VB.NET项目中添加引用。



希望这有帮助。

I''m using the following code for download:

Dim wc As System.Net.WebClient
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
wc = New System.Net.WebClient()
wc.DownloadFileAsync(New Uri("URL"), "C:\")


I have good internet connection and the Direct link transfer rate 500.385 kb/sec on Internet Download Manager.
So how can I make download faster in VB?
It''s really slow in VB

Any code?

thanks :)

解决方案

I found this excellent CP article: A Multi-thread C# Segmented Download Manager
But the article was written in C#, you need to convert the entire project to VB.NET, OR just compile as library and add reference in your VB.NET project.

Hope this helps.


这篇关于如何让Visual Basic更快地下载文件{help}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆