BackStyle

Returns or sets a value indicating whether a Label control or the background of a Shape control is transparent or opaque.

Syntax

object.BackStyle [= number]

The parts of the BackStyle property syntax are described in the following table.

Part Description
object An object expression that evaluates to an object.
number A numeric expression specifying transparency, as described in Settings.

Settings

The settings for number are described in the following table.

Setting Description
0 Transparent — background color and any graphics are visible behind the control.
1 (Default) Opaque — the control's BackColor property setting fills the control and obscures any color or graphics behind it.

Remarks

You can use the BackStyle property to create transparent controls when you are using a background color on a Form object or when you want to place a control over a graphic. Use an opaque control when you want it to stand out.