I am processing some xml files in for loop and according to the number of files has been processed I want to show the progress bar. Suppose there are 100 files in directory
Set Minimum and Maximum and then use the Step property with the PerformStep method to increment the value of the ProgressBar.
Step
PerformStep
progressBar1.Step = 1; int part=someList.Count / 100; .... .... //Inside the loop if (loop_counter % part == 0) { progressBar1.PerformStep(); }
See