property Element.MaxHeight as Long
Specifies the maximum height of the element.

TypeDescription
Long A Long expression that specifies the max height of the element. If negative, the MaxHeight property has no effect.
By default, the MaxHeight 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.