AutoSize Property

Visual Studio .NET 2003

Specifies whether a control is automatically resized to fit its contents. Available at design time and run time.

Control.AutoSize[ = lExpr]

Property Values

lExpr
Specifies whether a control is resized to fit its contents. The settings for the AutoSize property are:
Setting Description
True (.T.) The control is automatically resized to fit its contents.
False (.F.) (Default) The contents are clipped when they exceed the area of the control.

Remarks

For OLE Container controls, Autosize applies only to OLE objects that support in-place editing. The Sizable property must be set to true (.T.) to change the size of an OLE object during in-place editing.

See Also

Alignment Property | Height Property | Width Property

Applies To: CheckBox Control | CommandButton Control | CommandGroup Control | Label Control | OLE Bound Control | OLE Container Control | OptionButton Control | OptionGroup Control

Show: