I have a simple windows app that launches one thread. The thread processes files. After getting file count I set the progbar.maximum = filecount. progbar.minimum = 0
As each file is processed I call the Increment function (all of this is done properly using delegates).
Everything seems to work ok except that the progress bar does not fill up all the way to the end. It will get about 3/4 full and the thread ends because it has finished.
I have stopped the program at the point the thread finishes and verified the filecount is correct and that the progbar.value = filecount.
Any clues as to why the progbar doesn't show the max amount?
Below is my update function being called from the thread.
Public Sub UpdateProgressBar()
If statStrip.InvokeRequired Then
Dim c As New HandleProgBarUpdate(AddressOf UpdateProgressBar)