Transparent Labels

  • Thread starter Thread starter Hannibal111111
  • Start date Start date
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
 
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
 
* "=?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.
 
Back
Top