问题描述
我的问题是,如何获得执行方法的进度百分比.
例如,当我们复制文件时,如何获取变量中复制文件的数量,
或
当我们的应用程序大小太大,并且需要花费一些时间来加载所需的文件时,我们如何才能了解上传了多少应用程序文件?
假设该应用程序有3 100mb文件,在执行我们的应用程序时需要加载该文件.如何了解上传了多少文件大小以及剩余了多少文件?
您知道吗,我确实希望在第一个表单中有一个进度条控件,该控件显示了要上传的文件数量,并且当所有文件都完全上传后,它会显示一条消息,表明应用程序已准备就绪,可以使用.
我清楚吗?如果我不能很好地解释我的问题,请告诉我.
my question is how can we get progress percentage of acting a method.
for e.g when we are copying a file how can we get the amount of copied file in a variable,
or
when our application size is too big, and it takes a while to load it''s needed files, how can we understand how much of our application files are uploaded?
suppose that the application has 3 100mb files that are needed to load when our application is executed. what is the way to understand how much of file sizes are uploaded and how much is remained?
you know, exactly I want to have a progress bar control in my first form that shows how much of files are uploaded and when all of them is uploaded completely, it shows a message that application is ready to use.
am I clear? if I explain my problem not so good, please tell me.
推荐答案
这篇关于获得方法进度百分比的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!