473,322 Members | 1,268 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Transparent Labels

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
Nov 20 '05 #1
3 4438
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
Nov 20 '05 #2
* "=?Utf-8?B?RGFuaWVsIENsYXVzZW4=?=" <an*******@discussions.microsoft.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>
Nov 20 '05 #3
You can also use the forms transparency key.
"Hannibal111111" <Ha************@hotmail.com> wrote in message
news:23**************************@posting.google.c om...
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

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: DS | last post by:
Anyone know of any downsides of using Transparent Buttons with Labels behind them? Thanks DS
2
by: Steve Barnett | last post by:
I've got a form on which there is a picture box with a picture in it. On top of that I place two labels and make their backgrounds transparent. What I expect to see is the picture showing through...
3
by: SStory | last post by:
Is there no way to make a label or link label transparent in vb.net? This is a real pain on about screens with nice graphics where you want your text backgroup to be transparent. I can...
4
by: jcrouse | last post by:
I am using the following code to move a label on a form at runtime: If myMousedown = lblP1JoyRight.Name Then If lblP1JoyRight.BackColor.Equals(Color.Transparent) Then bTransCk = True ...
2
by: Dean Slindee | last post by:
It appears that I have two routines that don't play well together! First routine: a form's background is shaded with a gradient color. Second routine: then, the background of all labels on the...
2
by: Pascal | last post by:
Je veux que mes label soit transparent aussi sur mes picturebox alors j'écris : i want my labels to be transparent on my pictureboxes so i wrote : Private Sub Form1_Load(ByVal sender As Object,...
3
by: vul | last post by:
I used to use creating headers (label at the top of the screen) for VB6 forms as 2 labels shifted a little bit with different for colors to get a simulation of a shadow. I set BackColor of both...
8
by: MikeB | last post by:
Hi, I created a picturebox with a map as an image. I want to make certain areas on the map clickable hotspots and the way I'm trying to do this is to create a transparent label with a different...
3
by: T Clancey | last post by:
Hi all. I've been working on a small and very simple label design app for a few days now, I've got most of my problems solved, although I'm sure there are some more just around the corner! ...
1
by: FPhoenix | last post by:
Ive been Developing a program in VB.NET after an extensive break from VB6. In this application i have an image that gets loaded through a listbox, on this image there are areas on the various...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.