I have a program that takes loops through files in a folder, creates a new folder elsewhere with that file name, then puts a common file in that folder. rinse repeat until we are done with whats in that folder (listed in a listbox).
I decided I want to be fancy and have a progress bar. I conceptually understand that I am increment the count by one (to the listbox.items.count
) for each iteration.. which I have coded and works well.
I also understand that the DoWork
event is what counts for the progress bar, how do I get the two to mesh? Do I pass a counter to the DoWork
for each iteration?
I am just missing the bridge from my main code loop to the DoEvents counter.