BorderWidth

This property returns and sets the width of a control's border.

Syntax

object.BorderWidth [= number]

Parameters

object
Object expression that evaluates to a Shape or Line control.
number
Numeric expression from 1 through 8,192.

Remarks

Use the BorderWidth and BorderStyle properties to specify the kind of border you want for a DrawLine or Shape control. The following table shows the effect of BorderStyle settings on the BorderWidth property.

BorderStyle
Effect on BorderWidth
0 BorderWidth setting is ignored.
1 The border width expands from the center of the border; the height and width of the control are measured from the center of the border.

If the BorderWidth property setting is greater than 1, the only effective settings of BorderStyle is 1 (Solid).