Table of contents
TOC
Collapse the table of content
Expand the table of content

ForeColor Property (Microsoft Forms)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Specifies the foreground color of an object. Syntaxobject. ForeColor [= Long ] The ForeColor property syntax has these parts:

PartDescription
objectRequired. A valid object.
LongOptional. A value or constant that determines the foreground color of an object.

Settings You can use any integer that represents a valid color. You can also specify a color by using the RGB function with red, green, and blue color components. The value of each color component is an integer that ranges from zero to 255. For example, you can specify teal blue as the integer value 4966415 or as red, green, and blue color components 15, 200, 75. Remarks Use the ForeColor property for controls on forms to make them easy to read or to convey a special meaning. For example, if a text box reports the number of units in stock, you can change the color of the text when the value falls below the reorder level. For a ScrollBar or SpinButton, ForeColor sets the color of the arrows. For a Frame, ForeColor changes the color of the caption. For a Font object, ForeColor determines the color of the text.

© 2018 Microsoft