473,473 Members | 1,906 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

TransparentLabel

gh
I have a jpeg image on the winform, that I am using for a background.
When I drop a label on the form the label background is white. How do I
get the label background to be transparent, so the image shows through it?

TIA
Nov 17 '05 #1
2 1877
Set the parent of the label to be the picturebox the image is on.

"gh" <gh@at.ne> wrote in message
news:uW**************@TK2MSFTNGP11.phx.gbl...
I have a jpeg image on the winform, that I am using for a background. When
I drop a label on the form the label background is white. How do I get the
label background to be transparent, so the image shows through it?

TIA

Nov 17 '05 #2
"gh" <gh@at.ne> wrote in message
news:uW**************@TK2MSFTNGP11.phx.gbl...
I have a jpeg image on the winform, that I am using for a background. When
I drop a label on the form the label background is white. How do I get the
label background to be transparent, so the image shows through it?


Set the label's BackColor to Transparent (in the Web tab of the property
grid when the label's BackColor property is selected), or use the following
code:
Label1.BackColor = System.Drawing.Color.Transparent;

Chris Jobson
Nov 17 '05 #3

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

Similar topics

6
by: Steve Long | last post by:
Help, I'm running VS.NET 2003 and when I try to start my application, I get the "unhandled exception" dialog instead of the IDE highlighting the offending line of code. The problem appears to be...
2
by: C?sar F. Q?eb Montejo via DotNetMonster.com | last post by:
This question already has been done previously (Sorry if this disturb to you). Scenery: I have created a class based on a Label class. In this class I had made a Overrides to the...
3
by: JD | last post by:
Is it possible to have a clear backstyle for a lable control? I want to write some text on a lable and I want the background of the label to match the color of the control I am placing the label...
0
by: VorTechS | last post by:
I'm having a problem with an inherited label, applying text rotation to aligned text. If text rotation is applied to the aligned text, the alignment goes 'nuts'. I can find no logic to what is...
10
by: Phil | last post by:
I would like to draw some text which will be in front of any other controls, but without obscuring them completely. If I use DrawString in the form's Paint handler the text is always behind, not in...
0
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
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
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,...
1
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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.