MaximizedHeight Property

Applies to:  SubClasser object, PowerForm control
See also:  MaximizedWidth Property, MinHeight Property, Property Index

Determines the height, in pixels, of the subclassed window when maximized. 

Read/Write at both design-time and run-time.

Type:

Long

Settings:

Value Meaning
0 The MaximizedHeight property is ignored, and the window will take up the whole height of the screen when maximized.
<>0 When maximized, the height of the form will be as specified by the MaximizedHeight property.

Remarks:

The MaximizedHeight property is the total height of the window when maximized, including the caption bar and border if applicable.

Setting the Maximized height property to a (non-zero) value that is less than the height of the screen, will mean that the form does not take up the whole height of the screen when maximized.  This will not prevent the user from manually resizing the form to a larger size.

To prevent the window from being manually resized beyond a maximum height, handle the Resizing event.

Further examples:

SubForm - Continuous Forms View

 

Home

Copyright and Disclaimer