BorderColor Property

Applies To

Bound Object Frame Control, Chart Control, Combo Box Control, Image Control, Label Control, Line Control, Option Group Control, Rectangle Control, Text Box Control, Unbound Object Frame Control.

Description

You can use the BorderColor property to specify the color of a control’s border.

Setting

The BorderColor property setting is a numeric expression that corresponds to the color you want to use for a control’s border.

You can use the Color Builder to set this property by clicking the Build button to the right of the property in the property sheet. Using the Color Builder enables you to define custom border colors for controls.

You can also set this property using the Formatting toolbar, a macro, or Visual Basic.

You can set the default for this property using a control’s default control style.

Remarks

A control’s border color is visible only when its SpecialEffect property is set to Flat or Shadowed. If the SpecialEffect property is set to something other than Flat or Shadowed, setting the BorderColor property changes the SpecialEffect property setting to Flat.

See Also

BorderStyle Property, BorderWidth Property, ForeColor Property, QBColor Function, RGB Function, SpecialEffect Property.

Example

See the BackColor property example.