steffen1994
steffen1994

Reputation: 287

Make Label Forecolor light transparent C#

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

Answers (1)

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

Related Questions