BackStyle Property

Applies To   See Also

Specifies whether the background of an object is transparent or opaque. Available at design time and run time.

Syntax

Object.BackStyle[ = nStyle]

Settings

nStyle

The settings for the BackStyle property are:

Setting Description
0 Transparent. Anything behind the object is visible.
1 (Default) Opaque. The object's BackColor 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 on a busy background.

An object's BackColor property is ignored if the BackStyle property is set to 0 (Transparent).

For a Page object, the BackStyle property is read-only when the Tabs property is set to true (.T.) for the PageFrame containing the Page.