aronmatthew
Active member
- Joined
- Aug 5, 2019
- Messages
- 41
- Programming Experience
- Beginner
For some reason this is failing to update the percent label on the form....
percentage label not updating:
percentLabel.Text = "0%";
double percentage;
for (int i = 0; i < sourceFiles.Count; i++)
{
File.Copy(sourceFiles[i], targetFiles[i], true);
progressBar.Increment(1);
percentage = (double)i / sourceFiles.Count;
percentLabel.Text = Math.Round(percentage * 100).ToString() + '%';
}
percentLabel.Text = "100%";