Reputation: 287
I have a label in front of a black form.
My lable1
ForeColor is red, but I want the label slightly transparent.
100% you see the label full > 0% you can't see the label, and I want the opacity by about 50%?
I have no clue how to do this. Any suggestions?
Upvotes: 1
Views: 1015
Reputation: 3290
Try this
Color transparentColour = Color.FromArgb(128, Color.Red);
label1.BackColor = transparentColour;
The Color.FromArgb(x, y)
allows you to set colour y
with opacity x/255
Upvotes: 2