Specifies whether an object is visible or hidden. Available at design time and run time.
Syntax
Object.Visible[ = lExpr]
Settings
lExpr
The settings for the Visible property are:
Setting | Description |
True (.T.) | The default in the Form Designer. The object is visible. |
False (.F.) | The default in program code. The object is hidden. |
Remarks
Setting the Visible property for the _SCREEN system variable has no effect in Visual FoxPro for Windows.
Even if the object is hidden, it can still be accessed in code.
To hide an object at startup, set the Visible property to false (.F.) at design time. If you set the Visible property in code, you can hide an object and display it at run time in response to a particular event.
When a form's Visible property is set to false (.F.), the form is hidden and the last-active form set, form, or other object becomes active. When a form's Visible property is set to true (.T.), the form becomes visible. Setting a form's Visible property to true (.T.) does not affect the form's Order property setting. The form does not become active when Visible is set to true (.T.). Use the Show method to activate a form and make it visible in the same step.
Note If the Visible property of a form is set to false (.F.), the form isn't displayed, even if the form set's Visible property is set to true (.T.). However, if the form set's Visible property is set to false (.F.), all forms contained in the form set are invisible.