ProgressBar在下载后正在更新 [英] ProgressBar is updating after downloading

查看:119
本文介绍了ProgressBar在下载后正在更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 DownloadFiles(); 
Thread thread = new Thread(LongTask);

thread.IsBackground = true ;
thread.Start();
pB1.Minimum = 0 ;
pB1.Maximum = count;
pB1.Step = 1 ;



我的进度条在之后更新DownloadFiles()已完成:(



我想用文件运行它正在下载....

解决方案

尝试BackGround Worker

BackgroundWorker和ProgressBar演示 [ ^ ]

DownloadFiles();
Thread thread = new Thread(LongTask);
                       
 thread.IsBackground = true;
                        thread.Start();
                        pB1.Minimum = 0;
                        pB1.Maximum = count;
                        pB1.Step = 1;


My progressbar is updating after DownloadFiles() completed :(

I want to run it with files Downloading....

解决方案

Try BackGround Worker
BackgroundWorker and ProgressBar demo[^]


这篇关于ProgressBar在下载后正在更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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