Click here to Skip to main content
15,897,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

C#
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
Posted
Updated 28-Jul-11 18:27pm
v2

See the example of BackgroundWorker Class[^].
 
Share this answer
 
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.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900