473,791 Members | 3,071 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\wal l.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 20678
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\wal l.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******@hotma il.com> wrote in message
news:OU******** **********@TK2M SFTNGP05.phx.gb l...
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.BackColo r = Color.Transpare nt;

For example

I have a picturebox control in my form, I set the picture property to
'C:\windows\web \wallpapers\wal l.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
9509
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 control. My control draws a shape (circle, square, rectangle ...)
8
14063
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 creating a box the same size and making it have a color for the background. Although, I can't visualize the logic or how to kick off the 'click' event with this overlay sitution. Ok ... I am rambling. Does anyone have the answer to this one? ...
3
36041
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 also, so that I can place some text on top of an image (seing the image behind the text instead of the gray box of the label) and showing to the user only the image without the background of the picturebox or form, and the text over it? Any Ideas?...
2
4578
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. Any help is greatly appreciated. Thank you Tony
4
1486
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 background colour of the form is still set to "control" colour. If I use the background transparent setting instead of seeing my drawn on background and it's gradient i see the forms background colour. If the label was on a solid coloured bit of...
1
8361
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 String For Each ctl In Me.Controls
2
10988
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 documentation has reached an all-time low (please note the part about the z-order): MSDN: In Visual Basic 6.0, the BackStyle property of the Label control determines whether the label had a transparent background. Setting the BackStyle...
3
2393
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! The current issue is trying to get dynamically created labels to be truly transparent. Setting the color value just doesn't do the job! I may have many labels on the form at any one time, when moving a label over
0
9515
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10427
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5431
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.