Export (0) Print
Expand All
Expand Minimize

CommandButton.BorderStyle Property (Access)

Specifies how a control's border appears.Read/write Byte.

Version Added: Access 2010

expression .BorderStyle

expression A variable that represents a CommandButton object.

For controls, the BorderStyle property uses the following settings.

Setting

Visual Basic

Description

Transparent

0

(Default only for label, chart, and subreport) Transparent

Solid

1

(Default) Solid line

Dashes

2

Dashed line

Short dashes

3

Dashed line with short dashes

Dots

4

Dotted line

Sparse dots

5

Dotted line with dots spaced far apart

Dash dot

6

Line with a dash-dot combination

Dash dot dot

7

Line with a dash-dot-dot combination

Double solid

8

Double solid lines

You can set the default for this property by using a control's default control style or the DefaultControl property in Visual Basic.

A control's border style is visible only when its SpecialEffect property is set to Flat or Shadowed. If the SpecialEffect property is set to something other than Flat or Shadowed, setting the BorderStyle property changes the SpecialEffect property setting to Flat.

Show:
© 2014 Microsoft