Visual Basic Reference

Visual Studio 6.0

FillColor Property

See Also    Example    Applies To

Returns or sets the color used to fill in shapes; FillColor is also used to fill in circles and boxes created with the Circle and Line graphics methods.


object.FillColor [ = value]

The FillColor property syntax has these parts:

Part Description
Object An object expression that evaluates to an object in the Applies To list.
Value A value or constant that determines the fill color, as described in Settings.


The settings for value are:

Setting Description
Normal RGB colors Colors set with the RGB or QBColor functions in code.
System default colors Colors specified with the system color constants in the Visual Basic (VB) object library in the Object Browser. The Microsoft Windows operating environment substitutes the user's choices, as specified by the user's Control Panel settings.

By default, FillColor is set to 0 (Black).


Except for the Form object, when the FillStyle property is set to its default, 1 (Transparent), the FillColor setting is ignored.