Determines whether a control is visible or hidden.
control. Visible
Generators: .NET, .NET Framework, Java, Android, Apple, Angular
Controls: All
To hide a control, set its Visible property to False or 0.
Once a control has been hidden (controlName.Visible = 0) it stays this way until you make it visible again (controlName.Visible = 1).
This property applies both at runtime and at design time.
Consider the following Transaction object:
Customer
{
CustomerId*
CustomerName
CustomerAddress
CustomerEmail
CustomerPhoto
}
To show or hide the Customer’s photo, depending on the customer's category, you have to define the following rules:
CustomerPhoto.Visible = 0 if CategoryId = 2;
CustomerPhoto.Visible = 1 if CategoryId <> 2;