通过进度条进行FTP上传/下载 [英] FTP upload/download with a progressbar

查看:70
本文介绍了通过进度条进行FTP上传/下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一些WPF示例代码来执行带有进度条的FTP下载和上传.我一直在网上搜索,搜索的越多,我就越困惑.

I am looking for some WPF example code to perform FTP downloads and uploads with a progressbar. I have been searching all over the 'net and the more I search, the more confused I get.

我尝试了My.Computer.Network.DownloadFile,但是直到下载了50meg文件后进度条才起作用,因此该按钮无法工作.我的用户需要查看正在发生的事情,否则我会接到电话. :(

I tried My.Computer.Network.DownloadFile but the progressbar did not work until after the 50meg file was downloaded so that will not work. My users need to see something happening or I will get calls. :(

我希望使用Visual Basic中的示例,但我会采取任何措施!链接到文章也很好.

I would prefer examples in visual basic, but I will take anything! Links to articles would be great also.

非常感谢!

Rhek

 

推荐答案

"我尝试了My.Computer.Network.DownloadFile,但是直到50meg之后进度条才起作用文件已下载,因此无法正常工作."

"I tried My.Computer.Network.DownloadFile but the progressbar did not work until after the 50meg file was downloaded so that will not work."

发布您的代码.使用ShowUI = True时,进度应显示为文件下载.

Post your code.  With ShowUI = True the progress should be indicated as the file downloads.


这篇关于通过进度条进行FTP上传/下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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