This property returns and sets the width of a control's border.
object.BorderWidth [= number]
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).