I am using the following code for my progress bar. It increments as progress is made but when it gets to the end of the cycle the green progress indicator is not all the way to the end. Why?
Dim percentage As Integer
For i As Integer = 1 to TotalCount
' ... some work ...
percentage = i / TotalCount * 100
ProgressBar1.Value = percentage ' <-- assuming default Min = 0, Max = 100