BorderStyle Property

Applies To   See Also

Specifies the border style of an object. Available at design time and run time.

Syntax

Object.BorderStyle[ = nStyle]

Settings

nStyle

For a CommandGroup, EditBox, Image, Label, OptionGroup, or TextBox control, the settings for the BorderStyle property are:

Setting Description
0   None. Default for Image and Label controls.
1   Fixed Single. Default for CommandGroup, EditBox, OptionGroup, and TextBox controls.

For a line or shape, the settings for the BorderStyle property are:

Setting Description
0   Transparent
1   (Default) Solid. The outer edge of the border is the outer edge of the Shape control.
2   Dash
3   Dot
4   Dash-Dot
5   Dash-Dot-Dot
6   Inside Solid

For a Form object, the settings for the BorderStyle property are:

Setting Description
0   No border
1   Fixed Single
2   Fixed Dialog
3   (Default) Sizable

Remarks

If the BorderWidth property setting is greater than 1, regardless of the BorderStyle setting, a solid border is drawn. If BorderWidth is set to 1, BorderStyle produces the effects described in the tables above.