FillColor

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

Syntax

object.FillColor [ = value]

The parts of the FillColor property syntax are described in the following table.

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

Settings

The settings for value are described in the following table.

Setting Description
Normal RGB colors Colors set with the RGB function 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 CE operating environment substitutes the user's choices, as specified by the user's Control Panel settings.

By default, FillColor is set to 0 (Black). For the PictureBox control, FillColor is set to WindowText.

Remarks

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