Transparent Property

Transparent Property

See Also                  Applies To

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 Visual Basic Description
Yes True (–1) The button is transparent.
No False (0) (Default) The button is solid.

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.