Home > Language Reference > Classes > Control

Visible Property

Indicates if a control is visible or not.

Syntax

Public Property Get Visible() As Boolean
Public Property Let Visible(ByVal bVisible As Boolean)

ParameterDescription
bVisibleBoolean expression.

Remarks

If the value of the Visible property is True, the control is visible. If it is False, the control is hidden. A hidden control cannot interact with the user and cannot raise any events.

The following example successively displays and hides a Label control each time a button is clicked:

Private Sub Button1_Click()
  Label1.Visible = Not Label1.Visible
End Sub

Hiding a focused control automatically set the Focus property to Nothing.

Note: this property has no effect on Graffiti® Shift Indicators. These controls are always visible.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A