Visual Basic: Windows Controls
Sets or returns the maximum value of the scroll range for the UpDown control.
object.Max [= value]
The Max property syntax has these parts:
|object||An object expression that evaluates to an object in the Applies To list.|
|value||A long integer value that specifies the maximum value, as described below. The setting for value can be a negative number.|
Pressing the up or right arrow normally causes the UpDown control to increase the Value property, however, if the Max property is less than the Min property, the UpDown control operates in the reverse direction.
Pressing the up or right arrow always causes the Value property to approach the Max value. Pressing the down or left arrow always causes the Value property to approach the Min value.