Visual Basic Reference

BackStyle Property (UserControl Object)

See Also    Example    Applies To

Returns or sets a value indicating the type of the controls background.

Syntax

object**.BackStyle** [= enum]

The BackStyle property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
enum An enumerated value that determines how the background of the control will be displayed, as described in Settings.

Settings

The settings for enum are:

Setting Description
1-Opaque (Default) Opaque background. All mouse events are received by the control.
2-Invisible Applies only when the Windowless property is set to True. Otherwise the behavior is the same as with a Transparent BackStyle.

Remarks

When enum is set to 2, the appearance and behavior of controls with the Windowless property set to True are based on the settings of the MaskPicture, MaskColor, HitBehavior, and ClipBehavior properties.