使用vb.net 2010复制文件时如何更新进度条进度? [英] How do I update progressbar progress when I am copying a file using vb.net 2010?

查看:339
本文介绍了使用vb.net 2010复制文件时如何更新进度条进度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个创建的文件复印机,它工作正常,但我想在我的应用程序中添加一个进度条,显示复制文件的进度....感谢高级

I have a created a file copier and it works perfect but I want to add a progressbar in my application which shows the progress of copying a file....Thanks in Advanced

推荐答案

文件复制是一个阻塞过程,它意味着你不会得到关于它的状态的任何指示,直到它完成,所以你的进度条将从0跳到100 ...如果仔细观察Windows文件进度条是实际上是一个'marquee'风格吧......
File copy is a blocking process, it means you will not get any indication about it's state until it finished, so your progress bar will jump from 0 to 100...If you look closely Windows file progress bar is in fact a 'marquee' style bar...


这篇关于使用vb.net 2010复制文件时如何更新进度条进度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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