Peek-a-boo! I see you.
—Traditional Children's Game
This property determines whether or not you can see through controls. The default is 1 for Opaque, meaning that the control hides whatever's behind it.
oObject.BackStyle = nBackStyle
nBackStyle = oObject.BackStyle|
Parameter |
Value |
Meaning |
|
nBackStyle |
0 |
The object is Transparent, meaning that whatever's behind it on the form is visible. |
|
1 |
The object is Opaque, meaning that whatever's behind it on the form is hidden. |
Several controls, including lists and combo boxes, don't have a BackStyle property and always hide things behind them.
In an OptionGroup, there's a BackStyle property for the group as a whole, plus individual BackStyles for the buttons in the group. You can actually create some pretty cool effects this way. (Imagine alternating Transparent and Opaque for the option buttons in the group.)
* Make all labels on current form transparent
_Screen.ActiveForm.SetAll("BackStyle", 0, "Label")