Official Content

Sets the foreground color of a control. A numeric value representing an RGB color value must be assigned.

Syntax

control. ForeColor = value

Where:
value 
    Represents an RGB color.

Control
    Is the name of a control inserted in the form.

Description

Design Time: Applies to check boxes, combo/dynamic combo, edits, error viewer, list/dynamic list box, radio buttons and grid columns.

Execution Time: Applies to check boxes, combo/dynamic combo, edits, list/dynamic list box, radio buttons and grid columns.

Samples

The following should be added to make the forecolor of an edit control blue:

EditCtrl.Forecolor = RGB(0,0,255)

Scope

Objects: Transaction, Web Panel
Platforms: Web(.Net, Java)
Controls: ErrorViewer, Attribute/Variable, Grid

See Also

BackColor property

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