From Xojo Documentation

Property (As Double )
aProgressBar.Value = newDoubleValue
DoubleValue = aProgressBar.Value

Supported for all project types and targets.

The current value of the progress bar.


This example is in the Open event of the ProgressBar. It sets the maximum value and initializes the reading to 0.

Me.Value = 0
Me.MaximumValue = 100

The following code is in the action event of a Timer. It increments the value of the ProgressBar.

ProgressBar1.Value = ProgressBar1.Value + 5