Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
DownloadFiles();
Thread thread = new Thread(LongTask);
                       
 thread.IsBackground = true;
                        thread.Start();
                        pB1.Minimum = 0;
                        pB1.Maximum = count;
                        pB1.Step = 1;

My progressbar is updating after DownloadFiles() completed :(

I want to run it with files Downloading....
Posted
Updated 21-Apr-13 3:24am
v2
Comments
Zaid Pirwani 21-Apr-13 9:15am    
maybe you need to put the progress bar update/increment code inside DownloadFiles()...
you should provide additional info about the DownloadFiles()

1 solution

Try BackGround Worker
BackgroundWorker and ProgressBar demo[^]
 
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