I want to customize a textBox in C# and I have a problem. If I set
textBox1.BackColor = Color.Transparent
I receive error:
Additional information: Control does not support transparent background colors.
I tried to insert in constructor
SetStyle(ControlStyles.SupportsTransparentBackColor, true);
but didn't solve anything. I have installed Dev Express but I don't know if it helps. Some ideas? Constructor:
public Constructor()
{
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
InitializeComponent();
}