Transparent Labels

H

Hannibal111111

In VB6 it was very easy to make a label transparent so it will show
the background color of the form that it is on. But how do I do this
in VB.Net? I have a label on a form and I want the form's background
image to show through the label. Also on another form, I have a label
over a picture box, and I want the image of the picture box to show
through the label. I have tried setting the label's backcolor =
Transparent but this does not work. I have tried this in both
design-time and run-time.

Any suggestions?

Thanks,

Chris
 
G

Guest

Here is how you can do it

Label1.BackColor = System.Drawing.Color.Transparen

This can be done in the Windows form designer by using the transparent color at the top of the web tab in the color picker

Hope this helps

Daniel Clausen MCSD
 
H

Herfried K. Wagner [MVP]

* "=?Utf-8?B?RGFuaWVsIENsYXVzZW4=?= said:
Label1.BackColor = System.Drawing.Color.Transparent

This can be done in the Windows form designer by using the transparent color at the top of the web tab in the color picker.

Remember that this won't work on all Windows versions.
 

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