Returns or sets whether an object is visible or hidden.
Object.Visible [ = bVisible ]
The Visible property syntax has the following parts:
Name |
Type |
Description |
Object |
Object |
An object |
bVisible |
Bool |
A boolean expression that specifies whether the object is visible or hidden. |
bVisible can be one of the following:
Value |
Description |
True * |
The control is visible. |
False |
The control is hidden. |
To hide an object when the form is initially visible, set the control's Visible property to False at design time. Setting this property at run time enables the user to hide and later redisplay a control at run time in response to a particular event.
When used on AForm object the property will cause the form to be the active window (form will get the input focus).
The following statement changes the ALabel control so the user cannot see it:
lbl1.Visible=False
All controls that can be visible at run time and the following classes: