How to make label transparent in CSharp

T

thi

Hi Experts,

I am new to C# moving from VB 6.0.

Basic i want to know how do i make the label transparent with the control
color it currently on.

For example

I have a picturebox control in my form, I set the picture property to
'C:\windows\web\wallpapers\wall.bmp'. Then i placed a label control onto the
picturebox and i want that label to be transparent with the picturebox
picture, how can i do that.

Thanks in advance.
 
G

Guest

I recomend you to look there for the contols samples with description
http://www.codeproject.com/info/sea...=Search&author=&sd=15+Nov+1999&ed=28+Jun+2006


thi said:
Hi Experts,

I am new to C# moving from VB 6.0.

Basic i want to know how do i make the label transparent with the control
color it currently on.

For example

I have a picturebox control in my form, I set the picture property to
'C:\windows\web\wallpapers\wall.bmp'. Then i placed a label control onto the
picturebox and i want that label to be transparent with the picturebox
picture, how can i do that.

Thanks in advance.

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
B

Ben Voigt

thi said:
Hi Experts,

I am new to C# moving from VB 6.0.

Basic i want to know how do i make the label transparent with the control
color it currently on.

label1.BackColor = Color.Transparent;
 

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