How to: Give Your Control a Transparent Background
By default, controls do not support transparent backcolors. However, you can allow your control to have a background color that is opaque, transparent, or partially transparent by using themethod in the constructor. The SetStyle method of the class allows you to set particular style preferences for your controls, and can be used to enable or disable support for transparent backcolors.
To give your control a transparent backcolor
Locate the constructor for your control class. The constructor appears in the control's code file. It is the method with the same name as the control and with no return value.
Call the SetStyle method of your form in the constructor.
This will enable your control to support a transparent backcolor.
Beneath the line of code you added in step 1, add the following line. This will set your control'sto .
Note that you can also create colors that are partially transparent using themethod. For more information on colors, see .