且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何通过C#中的Backgroundworker更新进度栏?

更新时间:2023-01-13 08:27:27

您需要创建BackgroundWorker.ReportProgress事件的实例.然后使用该方法更新进度条.

You need to create an instance of the BackgroundWorker.ReportProgress event. Then update the progress bar in that method.

BackgroundWorker.ReportProgress += new ReportProgressEventHandler()....

(语法可能不正确,但是您了解了)

(Syntax is probably incorrect, but you get the idea)