Returns or sets a value that determines whether the object is automatically resized to display its entire contents (text).
Object.AutoSize [ = bAutoSize ]
The AutoSize property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
ALabel |
ALabel control |
|
bAutoSize |
Bool |
A boolean expression that specifies whether object can receive the focus and respond to user-generated events. |
bAutoSize can be one of the following:
|
Value |
Description |
|
True |
Automatically resize the control to display its entire contents. |
|
False * |
Keeps the size of control constant. Contents are clipped when they exceed the area of the control. |
The following statement changes the ALabel Autosize to resize the control:
lbl1.Autosize=True