FillColor
This property returns and sets the color used to fill in shapes. FillColor also is used to fill in circles and boxes created with the DrawCircle and DrawLine graphics methods.
Syntax
object.FillColor [= value]
Parameters
- object
- Object expression that evaluates to a PictureBox control or Form object.
- value
- Value or constant that determines the fill color. Following are the settings for value:
- Standard RGB colors
- Colors set with the RGB function in code.
- System default colors
- Colors specified with the system color constants in the Visual Basic object library in the Object Browser. Windows CE 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.