Gets or sets the transparency of the shape.
Assembly: Microsoft.VisualBasic.PowerPacks (in Microsoft.VisualBasic.PowerPacks.dll)
The following example shows how to use the BackStyle property to switch back and forth between an opaque and transparent shape. This example requires that you have an OvalShape control named OvalShape1 on a form.
Private Sub OvalShape1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles OvalShape1.Click ' Change between transparent and opaque. If OvalShape1.BackStyle = PowerPacks.BackStyle.Transparent Then OvalShape1.BackStyle = PowerPacks.BackStyle.Opaque OvalShape1.BackColor = Color.LimeGreen Else OvalShape1.BackStyle = PowerPacks.BackStyle.Transparent End If End Sub
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.