FillStyle

This property returns and sets the pattern used to fill Shape controls as well as circles and boxes created with the DrawCircle and DrawLine graphics methods.

Syntax

object.FillStyle [= number]

Parameters

object
Object expression that evaluates to a PictureBox control, Shape control, or Form object.
number
Integer that specifies the fill style. The following table describes the settings for number.
Constant
Setting
Description
picFSSolid 0 Solid
picFSTransparent 1 (default) Transparent

Remarks

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