Not sure if I get your question correctly…
First, if what you want is to show a progressbar with some value that’s not 100… why not simply set the progres bar’s Maximum
to your value (156761 in your example) and set Value
to whatever progress it has?
Now, if the progress bar for whatever reason has to be fixed from 0 to 100, you can use:
x / m * 100
Where m
is the max value and x
the progress value.
2
solved Math for VB.net Progressbar 0 to 100%