Visible

This property returns and sets a value that indicates whether an object is visible or hidden.

Syntax

object.Visible [= Boolean]

Parameters

object
Object expression that evaluates to a control or Form object.
Boolean
Boolean expression that specifies whether the object is visible or hidden. Following are the settings for Boolean:
True (default)
Object is visible
False
Object is hidden

Remarks

To hide an object at startup, set the Visible property to False at design time. Setting this property in code enables you to hide and later redisplay a control at run time in response to a particular event.

Using the Show or Hide method on a form is the same as setting the form's Visible property in code to True or False, respectively.