Transparent Property

Applies To   Command Button control.

Description

You can use the Transparent property to specify whether a command button is solid or transparent.

Tip Use the BackStyle property to make other controls solid or transparent.

Setting

The Transparent property uses the following settings.

Setting

Description

Visual Basic

Yes

The button is transparent.

True (–1)

No

(Default) The button is solid.

False (0)


You can set this property by using the command button's property sheet, a macro, or Visual Basic.

Remarks

You can use this property to place a transparent command button over another control. For example, you could place several transparent buttons over a picture displayed in an image control and run various macros or Visual Basic event procedures depending on which part of the picture the user clicks.

Note To hide and disable a button, use the Visible property. To disable a button without hiding it, use the Enabled property. To hide a button only when a form or report is printed, use the DisplayWhen property.

See Also   BackColor property, BackStyle property, DisplayWhen property, Enabled, Locked properties, Visible property.