有关后台工作者的查询 [英] Query regarding background worker

查看:49
本文介绍了有关后台工作者的查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Winforms应用程序,我想在其中使用后台工作程序
在doworker事件中,即时通讯正在调用方法,我想更新进度条

i have winforms app where i want to use background worker
in the doworker events im calling a method and i want to update the progress bar

UI form
{



doworker _evnt()
{
 TestCls obj = new TestCls

 obj.CallMethod()



}

report progress
{

}

}



现在的问题是如何向进度条报告进度百分比.



Now the question is how to report the percentage progress to progress bar

推荐答案

请参阅 ^ ].


此处 [
There are some good samples in the CP Articles[^]. Here[^] is one that looks like what you are looking for.

Basically you will want to use the backgroundworker''s ReportProgress method.


这篇关于有关后台工作者的查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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