I am using following code in form_load
event to change Form.BackgroundColor
, but it is giving me an error.
Control does not support transparent background colors.
Here is what I am trying...
private void Form1_Load(object sender, EventArgs e)
{
string sColor = "#ACE1AF";// Hex value of any color
Int32 iColorInt = Convert.ToInt32(sColor.Substring(1), 16);
Color curveColor = System.Drawing.Color.FromArgb(iColorInt);
this.BackColor = curveColor;
}
I found the same question (Why am I getting "Control does not support transparent background colors"?), but is not met my requirement due to in this Color
class is using its default values.