property Element.MaxWidth as Long
Specifies the maximum width of the element.

TypeDescription
Long A Long expression that specifies the max width of the element. If negative, the MaxWidth property has no effect.
By default, the MaxWidth property is -1, which indicates that it has no effect. The MinWidth/MaxWidth and MinHeight/MaxHeight properties specifies the min/max size of the element. The Height property specifies the height of the element. The Width property specifies the width of the element. Use the Width and Height properties to resize the element, while the AutoSize property is False. If AutoSize property is True, the Width and the Height can not be changed programmatically. The X and Y properties specifies the position of the element on the surface. Use the MoveTo method to move/resize the element to a new position / size.