Official Content

Determines whether a control is visible or hidden.

Syntax

control. Visible

Values

False
True

Scope

Generators: .NET, .NET Framework, Java, Android, Apple, Angular
Controls: All

Description

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).

Runtime/Design time

This property applies both at runtime and at design time.

Samples

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;

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant