can i make a lable transparent?
can i make a label transparent?
Collapse
X
-
-
You should have said what version you were using. Have you browsed through the properties of the label in the documentation?Originally posted by sukeshchandYessss But can i make a lable transparent in VB.net
Oh! I've just done a quick search of the web and come up with this. Hope it helps...Please let us know whether this provides what you are looking for.Code:Label1.BackColor = Color.Transparent
Comment
-
how can i make a label transparent the code below doesn't work for me ... can u help me out am using VB.NET 2003
here is the code
Me.lblTest.Back Color = System.Drawing. Color.Transpare ntComment
-
what's the errorOriginally posted by billyboyherehow can i make a label transparent the code below doesn't work for me ... can u help me out am using VB.NET 2003
here is the code
Me.lblTest.Back Color = System.Drawing. Color.Transpare ntComment
-
That's the correct code, but it only makes the label transparent to its container, i.e., the form or panel. If you are trying to add a transparent label to a PictureBox, then you will have to draw it yourself. However, a better solution is to remove the PictureBox and use a Panel control instead. Just set the backround image of the panel to the image, put the label into the panel, and set the label BackColor to transparent. HTH --SamOriginally posted by billyboyherehow can i make a label transparent the code below doesn't work for me ... can u help me out am using VB.NET 2003
here is the code
Me.lblTest.Back Color = System.Drawing. Color.Transpare ntComment
-
In VB6, the picturebox can be the container for the label, so this would work. Don't know how it works in Vb.Net, though.Originally posted by SammyB...only makes the label transparent to its container, i.e., the form or panel. If you are trying to add a transparent label to a PictureBox, then you will have to draw it yourself...Comment
-
If you have VB6 installed.
Just Create a small proj with transparent label. convert that to vb.net.
Copy that label and use it anywhere.Comment
Comment