I have a progress bar in a winform c# application and I sue that as a progress indicator.
The progress bar can have a different Maximum size depending on the amount of user input (which can go over 100) so this is how I set it up:
this.pbLoadingWrite.Maximum = Input.Length;
this.pbLoadingWrite.Step = 1;
Calculating the percentage is quite easy in this case
int percent = (progressbar1.Value / progressbar.Maximum) * 100;
value = 56, Max = 300, 56 / 300 = 0.186666 0.186666 * 100 = 18.666%