ProgressBar.Maximum

From Xojo Documentation

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

Supported for all project types and targets.

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

Notes

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