Click here to Skip to main content
15,902,198 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi to all,this is Raghu.I have problem in using Progress Bar.My Problem is that I have to Simultaneously increment the progress bar when some process takes place such as i have to search the list of computers in the network.
Posted
Comments
Sandeep Mewara 10-Jul-10 4:20am    
What do you mean by 'simultaneous increament'? are you talking of showing real time progress?

1 solution

Add a BackgroundWorker. Handle it's DoWork and ProgressChanged events.

In the DoWork handler do your thing and call ReportProgress passing the percentage value when you need to update.

In the ProgressChanged handler update the progress bar using the value passed.

I made a simple wrapper here[^] to make this easier that you may find of use if using WinForms.
 
Share this answer
 

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