TransparentLabel

  • Thread starter Thread starter gh
  • Start date Start date
G

gh

I have a jpeg image on the winform, that I am using for a background.
When I drop a label on the form the label background is white. How do I
get the label background to be transparent, so the image shows through it?

TIA
 
gh said:
I have a jpeg image on the winform, that I am using for a background. When
I drop a label on the form the label background is white. How do I get the
label background to be transparent, so the image shows through it?

Set the label's BackColor to Transparent (in the Web tab of the property
grid when the label's BackColor property is selected), or use the following
code:
Label1.BackColor = System.Drawing.Color.Transparent;

Chris Jobson
 
Back
Top