MaximizedWidth Property

Applies to:  SubClasser object, PowerForm control
See also:  MaximizedHeight Property, MinWidth Property, Property Index

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

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

Type:

Long

Settings:

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

Remarks:

The MaximizedWidth property is the total height of the window when maximized, including the border if applicable.

Setting the Maximized width property to a (non-zero) value that is less than the width of the screen, will mean that the form does not take up the whole width 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 width, handle the Resizing event.

 

Home

Copyright and Disclaimer