DisplayForeColor PropertyDisplayForeColor Property*
*



Contents  *



Index  *Topic Contents
*Previous Topic: DisplayBackColor Property
*Next Topic: DisplayMode Property

DisplayForeColor Property

Specifies the display panel's foreground color.

Syntax

[form.]object.DisplayForeColor [ = color ]

Settings

Normal RGB colorsColors specified by using the color palette or by using the Visual Basic RGB or QBColor functions in code.
System default colorsColors specified by system color constants listed in the Object Browser's object library. The Windows operating environment substitutes the user's choices as specified in the Control Panel settings.

Remarks

At design time, the default setting is white (&HFFFFFF).

The valid range for a normal RGB color is 0 to 16,777,215 (&HFFFFFF). The high byte of a number in this range equals 0; the lower 3 bytes, from least to most significant byte, determine the amount of red, green, and blue, respectively. The red, green, and blue components are each represented by a number between 0 and 255 (&HFF). If the high byte is not 0, Visual Basic uses the system colors, as defined in the user's Control Panel settings and by constants listed in the Object Browser's object library.

Run-time access: read/write. Design-time access: read/write.

See Also

DisplayBackColor


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.