From Xojo Documentation

Property (As Integer )
aProgressBar.Maximum = newIntegerValue
IntegerValue = aProgressBar.Maximum

Supported for all project types and targets.

The maximum value of the progress bar. The maximum value of Maximum is 65536.


Set the Maximum property to zero to display an indeterminate progress bar rather than a progress indicator.

Sample Code

This code sets the maximum value of the progress bar:

ProgressBar1.Maximum = 350