Table of contents
Collapse the table of content
Expand the table of content

BorderStyle Property

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Specifies the type of border used by a control or a form. Syntaxobject. BorderStyle [= fmBorderStyle ] The BorderStyle property syntax has these parts:

objectRequired. A valid object.
fmBorderStyleOptional. Specifies the border style.

Settings The settings for fmBorderStyle are:

fmBorderStyleNone0The control has no visible border line.
fmBorderStyleSingle1The control has a single-line border (default).

The default value for a ComboBox, Frame, Label, ListBox or TextBox is 0 ( None ). The default value for an Image is 1 ( Single ). Remarks For a Frame, the BorderStyle property is ignored if the SpecialEffect property is None. You can use either BorderStyle or SpecialEffect to specify the border for a control, but not both. If you specify a nonzero value for one of these properties, the system sets the value of the other property to zero. For example, if you set BorderStyle to fmBorderStyleSingle, the system sets SpecialEffect to zero ( Flat ). If you specify a nonzero value for SpecialEffect, the system sets BorderStyle to zero. BorderStyle uses BorderColor to define the colors of its borders.

© 2018 Microsoft