BorderStyle Property

Returns or sets the style of the border of the object.

Syntax

Object.BorderStyle [ = enBorderStyle ]

The BorderStyle property syntax has the following parts:

 

Name

Type

Description

Object

A control or AForm

A control

enBorderStyle

enumABorderStyle

An integer specifying the style of the border around an object.

Where

enumABorderStyle can be one of the following:

 

Name

Value

Description

aNone

0

No border.

aSingle

1

Single line. This line is also affected by the Appearance property. If the Appearance is set to flat, the line is flat. If the Appearance is set to 3D, the line shows a 3D effect.

Comments

The AForm BorderStyle property uses its own set of border styles.

Example

The following statement changes the ALog border style:

logTestExec.BorderStyle=aNone

Applies to

 

AButton

AImage

ALog

ATextBox

AChart

ALabel

ASlider

 

AForm

AListBox

ASwitch

 

See Also

Appearance