Muokkaa

Jaa


Change the appearance of a control

Microsoft Forms includes several properties that let you define the appearance of controls in your application:

ForeColor determines the foreground color. The foreground color applies to any text associated with the control, such as the caption or the control's contents.

BackColor and BackStyle apply to the control's background. The background is the area within the control's boundaries, such as the area surrounding the text in a control, but not the control's border. BackColor determines the background color. BackStyle determines whether the background is transparent. A transparent control background is useful if your application design includes a picture as the main background and you want to see that picture through the control.

BorderColor, BorderStyle, and SpecialEffect apply to the control's border. Use BorderStyle or SpecialEffect to choose a type of border. Only one of these two properties can be used at a time. When you assign a value to one of these properties, the system sets the other property to None.

  • SpecialEffect lets you choose one of several border styles, but only lets you use system colors for the border.

  • BorderStyle supports only one border style, but lets you choose any color that is a valid setting for BorderColor.

  • BorderColor specifies the color of the control's border, and is only valid when you use BorderStyle to create the border.

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.