在usb批量传输C#中使用进度条 [英] Use of progress bar in usb bulk transfer C#

查看:119
本文介绍了在usb批量传输C#中使用进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我需要通过usb将.bin文件传输到我的设备。根据此文件,一旦文件传输,设备将自动断开与应用程序的连接已完成。文件大小约为2MB。我可以传输文件。我的问题是我应该使用进度条等进度指示器。如何在这种情况下使用。



我尝试过:



到目前为止,我将打开文件并将完整数据存储到缓冲区并发送此缓冲区虽然USB。

Hi,

I need to transfer a .bin file to my device through usb.Acccording to this file the device will disconnect automatically from application once file transfer is completed.The file size is around 2MB.I am able to tranfer file.My problem is I should use some progress indicator like progress bar.How can I use in this case.

What I have tried:

As of now I will open the file and store full data to a buffer and send this buffer though USB.

推荐答案

https://msdn.microsoft.com/en-us/library/system.windows.forms.progressbar(v = vs.110).aspx [ ^ ],谷歌在不到一秒的时间内发现。
https://msdn.microsoft.com/en-us/library/system.windows.forms.progressbar(v=vs.110).aspx[^], which Google found in less than one second.


这篇关于在usb批量传输C#中使用进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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