473,487 Members | 2,667 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

can i make a label transparent?

40 New Member
can i make a lable transparent?
Feb 15 '07 #1
17 25912
bagstoper
40 New Member
yes i can make a lable transparent
Feb 15 '07 #2
Killer42
8,435 Recognized Expert Expert
yes i can make a lable transparent
It's good to know that. But do you know how? :)
Feb 16 '07 #3
samycbe
83 New Member
just select the backstyle property. you can select transparent option there
Feb 16 '07 #4
sukeshchand
88 New Member
Yessss But can i make a lable transparent in VB.net
Feb 17 '07 #5
bagstoper
40 New Member
i don't know how to do anything in vb.net
Feb 17 '07 #6
Killer42
8,435 Recognized Expert Expert
Yessss But can i make a lable transparent in VB.net
You should have said what version you were using. Have you browsed through the properties of the label in the documentation?

Oh! I've just done a quick search of the web and come up with this. Hope it helps...
Expand|Select|Wrap|Line Numbers
  1. Label1.BackColor = Color.Transparent
Please let us know whether this provides what you are looking for.
Feb 17 '07 #7
billyboyhere
1 New Member
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.BackColor = System.Drawing.Color.Transparent
Mar 29 '07 #8
vijaydiwakar
579 Contributor
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.BackColor = System.Drawing.Color.Transparent
what's the error
Mar 29 '07 #9
SammyB
807 Recognized Expert Contributor
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.BackColor = System.Drawing.Color.Transparent
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 --Sam
Mar 29 '07 #10
Corster
36 New Member
Just type the colour code 16777215 into the BackColour property. ☺
Mar 29 '07 #11
Killer42
8,435 Recognized Expert Expert
Just type the colour code 16777215 into the BackColour property. ☺
Isn't that just white?
Mar 29 '07 #12
Killer42
8,435 Recognized Expert Expert
...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...
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.
Mar 29 '07 #13
Corster
36 New Member
In VB.Net, you will need to select transparent from web colours in the properties of the control.
Apr 4 '07 #14
ashishkapoor2000
2 New Member
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.
Jan 31 '08 #15
daniel aristidou
491 Contributor
Wait a sec..... im a bit confused does he want transparent backcolor or transparent Text?
Just in case it was the text......just set the forecolor = transparent
Jan 31 '08 #16
shuvo2k6
68 New Member
Wait a sec..... im a bit confused does he want transparent backcolor or transparent Text?
Just in case it was the text......just set the forecolor = transparent
Is transparent any constant for Forecolor.
Feb 1 '08 #17
shuvo2k6
68 New Member
Thkns everybody to perform
Feb 1 '08 #18

Sign in to post your reply or Sign up for a free account.

Similar topics

5
9460
by: Paul Schnitter | last post by:
Update: My custom control is based on the article "Creating Visual Basic .NET controls from scratch" in "Adventures in .NET" on MSDN. It is designed to be a replacement for the VB6 shape...
8
14024
by: Susan Bricker | last post by:
Is there a way to change the background color of command buttons? I know that I saw some VBA code somewhere that showed how to do this. I think it involved making the button transparent and then...
3
36026
by: Ignacio Domínguez | last post by:
Hi there. I know I can make a form transparent by setting the transparent color, opacity, etc. Is there a way of making the background of a label and the background of a picturebox transparent...
4
6606
by: Efkas | last post by:
Hi, I had some label with BackColor.Transparent and a User Control also with transparent background. When I put a label on the user control, instead to have transparent result I obtain a...
2
4552
by: anthonymelillo | last post by:
Is there a way to make the background of a text label transparent so that the image on the form behind can show through ? I can only seem to find out how to make the text background a color. ...
4
1468
by: Adam Maltby | last post by:
Hi, I need to do a transparent label but with a difference. I have drawn on my form a custom background using CreateGraphics as I needed an ellipse looking fill in a rectangle - so the actual...
1
8256
by: Dean Slindee | last post by:
The code below runs in the form_paint event but changes nothing, anyone got a better idea or why this code is not effective? Imports System.Drawing.Drawing2D Dim ctl As Control Dim str As...
2
10955
by: Martin | last post by:
I've been complaing about the VB2005 Help-Information (or rather the lack of it) before, but when I was looking how to set the backstyle of a label control to "Transparent" I found that the VB2005...
2
20651
by: thi | last post by:
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...
0
7106
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7349
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5442
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.