TransparentLabel

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
 
C

Chris Jobson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top