473,387 Members | 1,465 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,387 software developers and data experts.

How to make label transparent in CSharp

thi
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 in my form, I set the picture property to
'C:\windows\web\wallpapers\wall.bmp'. Then i placed a label control onto the
picturebox and i want that label to be transparent with the picturebox
picture, how can i do that.

Thanks in advance.
Jun 28 '06 #1
2 20642
I recomend you to look there for the contols samples with description
http://www.codeproject.com/info/sear...ed=28+Jun+2006
"thi" wrote:
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 in my form, I set the picture property to
'C:\windows\web\wallpapers\wall.bmp'. Then i placed a label control onto the
picturebox and i want that label to be transparent with the picturebox
picture, how can i do that.

Thanks in advance.


--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Jun 28 '06 #2
"thi" <th******@hotmail.com> wrote in message
news:OU******************@TK2MSFTNGP05.phx.gbl...
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.
label1.BackColor = Color.Transparent;

For example

I have a picturebox control in my form, I set the picture property to
'C:\windows\web\wallpapers\wall.bmp'. Then i placed a label control onto
the picturebox and i want that label to be transparent with the picturebox
picture, how can i do that.

Thanks in advance.

Jun 28 '06 #3

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

Similar topics

5
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
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
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...
2
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
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
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
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...
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! ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.