Example:
At this point in my code, the progress bar is at 70:
pbUpload.Value = 70;
foreach (string file in finalFiles)
{
//processes
//processes
}
finalFiles has a VARIABLE LENGTH. Meaning it does not have a fixed number. So basically I need to figure out the number first, which is easy, but then how do I construct a loop in which it’ll update the progress bar from 70 to 100 (100 being the last “each” element)?
This is simpler:
Good luck!