BorderWidth Property

Applies To

Bound Object Frame Control, Chart Control, Check Box Control, Combo Box Control, Image Control, Label Control, Line Control, Option Button Control, Option Group Control, Rectangle Control, Subform/Subreport Control, Text Box Control, Unbound Object Frame Control.

Description

You can use the BorderWidth property to specify the width of a control’s border.

Setting

The BorderWidth property uses the following settings.

Setting Description Visual Basic
Hairline (Default) The narrowest border possible on your system 0
1 pt to 6 pt The width as indicated in points 1 to 6


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

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

Remarks

To use the BorderWidth property, the SpecialEffect property must be set to Flat or Shadowed and the BorderStyle property must not be set to Transparent.

The exact border width depends on your computer and printer. On some systems, the Hairline and 1-point widths appear the same.

See Also

BackStyle Property, BorderColor Property, BorderStyle Property, SpecialEffect Property.