MinWidth Property

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

Determines the minimum width (in pixels) to which the subclassed window can be manually resized.

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

Type:

Long

Settings:

Value Meaning
0 The MinWidth property is ignored.  If the form is resizable, it have the default minimum width.
<>0 The form cannot be manually resized to a width less than MinWidth.

Remarks:

Setting the MinWidth property to a non-zero value will prevent the user from manually resizing the window to a width less than MinWidth.  This will not prevent the form from being resized to a smaller width by code.

MinWidth refers to the minimum total width of the form, including the border if applicable.

To set a minimum width for the client area, set MinWidth to the desired minimum client width plus 2 times the BorderThickness property, and adjust this value in response to the SettingChange event.  

 

Home

Copyright and Disclaimer