I’m downloading a collection of files, and I’d like to display progress in a progress bar. It’s simple to display overall progress by setting the maximum value of the progress bar to the total size of all the files, and by setting the current position to the size downloaded so far.
What I’d like to do is separate the progress bar into segments, with each section representing a different file in the collection.
Is this possible? How would I do it?
If you know the total size of the files to be downloaded, and you know the total size of the files downloaded so far, then you can just set .Maximum to the total size of the files, and .Position to the total downloaded so far. No need to worry about how the size is split between the files.
Or did you mean that you want tick marks on the progress bar according to the size of each file?