BorderWidth Property
Applies To
ActiveX control, Bound Object Frame control, Chart control, Check Box control, Combo Box control, Image control, Label control, Line control, List Box 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 by using the Line/Border Width button on the Formatting (Form/Report) toolbar, the control's property sheet, a macro, or Visual Basic.
You can set the default for this property by using the control's default control style or the DefaultControl method in Visual Basic.
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. If the SpecialEffect property is set to any other value and/or the BorderStyle property is set to Transparent, and you set the BorderWidth property, the SpecialEffect property is automatically reset to Flat and the BorderStyle property is automatically reset to Solid.
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.