WinStudio
IWSFormComponent interface
Sets or returns the value of the Hidden attribute for a specified component.
object.Visible
Part |
Description |
object | Required. A reference to a form component object. |
object.Visible = Boolean
Part |
Description |
object | Required. A reference to a form component object. |
Boolean | Required. Determines whether the attribute is enabled:
|
In the Get syntax, a return value of:
You cannot use this property for the first notebook tab component in a notebook.
Sub Main() Dim bVisible As Boolean bVisible = ThisForm.Components("grid1").Visible Application.ShowMessage("Component is visible? " & bVisible) If bVisible Then ThisForm.Components("grid1").Visible = False Else ThisForm.Components("grid1").Visible = True End If Application.ShowMessage("Component is now visible? " _ & ThisForm.Components("grid1").Visible.ToString()) End Sub
Visible When, WinStudio Component Property