Visible Property

Returns or sets whether an object is visible or hidden.

Syntax

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.

Where

bVisible can be one of the following:

 

Value

Description

True *

The control is visible.

False

The control is hidden.

Comments

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).

Example

The following statement changes the ALabel control so the user cannot see it:

lbl1.Visible=False

Applies to

All controls that can be visible at run time and the following classes:

 

AForm

APlot

AThumb

See Also

Enabled