Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have a ProgressBar control, I want it to show itself loading when a user selects a document to be viewed from a combo box list. Instead of the application freezing, I want it to show the status of the percentage the document viewer is loading until it finally loads and then the progressbar dissapears
Posted

1 solution

You can use the BackgroundWorker class, which simplifies the handling of background threads when you are working with WPF:

BackgroundWorker and ProgressBar demo[^]


BackgroundWorker Threads and Supporting Cancel[^]
 
Share this answer
 
v2
Comments
matmape 1-Sep-14 9:58am    
BackGroundWorker is not available in WPF toolbox

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