WinForms Control
s do support an alpha channel, but not by default. For the control that you want to have a translucent back color, you must call the SetStyle
method:
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
The method is protected, so you'll have to inherit from the control you want and call it in the constructor or something. This control will be whatever colorPreview
is referring to.