473,516 Members | 2,865 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

transparancy in vb.net

Hi,

does anyone know how to set the BackColor of a label to transparant ?

A have a picture as background image and I would like some labels on top.
These labels must be transparant so that only the text is visible and the
backcolor of the labels disapears ...

Thanx

John

Nov 21 '05 #1
3 1017
In article <kl*********************@phobos.telenet-ops.be>, John Devlon wrote:
Hi,

does anyone know how to set the BackColor of a label to transparant ?

A have a picture as background image and I would like some labels on top.
These labels must be transparant so that only the text is visible and the
backcolor of the labels disapears ...

Thanx

John


In its backcolor property, switch to the web tab and select transparent.
Though, I found that this does not work if you use
Application.EnableVisualStyles ()

--
Tom Shelton [MVP]
Nov 21 '05 #2

Dear Mr. Shelton,

Thanx a lot. It works great.

John


In its backcolor property, switch to the web tab and select transparent.
Though, I found that this does not work if you use
Application.EnableVisualStyles ()

--
Tom Shelton [MVP]

Nov 21 '05 #3
This might work:

myLabel.SetStyle(ControlStyles.SupportsTransparent BackColor, True)

"John Devlon" wrote:

Dear Mr. Shelton,

Thanx a lot. It works great.

John


In its backcolor property, switch to the web tab and select transparent.
Though, I found that this does not work if you use
Application.EnableVisualStyles ()

--
Tom Shelton [MVP]


Nov 21 '05 #4

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

Similar topics

7
6561
by: dan glenn | last post by:
(PHP4.3.4) Is it possible to change an image that's in one type (jpg, gif, png) into another type? Especially, I know I can read a gif with GD2, but I really need to be able to save it as a png. Is that possible? -dg
4
5357
by: dan glenn | last post by:
(PHP4.3.4, GD2) How can I save a PNG using GD2 and insure that it saves as a palette-based (8-bit, 256-color) single-color transparancy?? Saving this way, I could be sure that an image loaded from a transparent gif could be saved as a png and the png would work in IE versions 5.5 and greater (IE has bug that messes up png transparancies which...
0
1687
by: Pieter Claerhout | last post by:
Hi all, I'm trying to use PIL to convert windows icon files to PNG. This mostly works, but it doesn't preserve the transparancy. Any tips or tricks on how to preserve the transparancy? Currently, my code looks as follows: from PIL import Image from PIL import IcoImagePlugin
4
9818
by: Keon | last post by:
Hoi Do someone know how i can make the background of a iframe transparancy? I already tried it with filter: Alpha(Opacity=50,); but it also make the text transperancy. do someone know how to do this? greetings Koen
1
1795
by: pnp | last post by:
Hi all, I'm developing a win app in C# and I am drawing by myself the icons that I'm going to use in Corel Draw 11, then turn them to icons by using Axialis and then use them from an imagelist in my app for icons. I use Color.Transparent (imagelist transparent color) for the transparrent areas of the icon. The problem is that I get little...
2
1427
by: Tym | last post by:
How on earth does one set the background property of a label to transparant, a la VB6? I have a label which overlays a picturebox, and I don't want the horrible grey background - I just want the text over the picturebox. The text dynamically moves around too. Effectivly, its a "You are Here" sort of thing, so I'm putting a red "X" in a...
2
1450
by: indispk | last post by:
Dear All, Somebody pls help me.I created a site and embedded a flash animation for the index page.And I made the background transparent using the following code when I embed it. <param name="wmode" value="transparent" /> It is properly working in IE but not in safari,firefox,etc..... For better understanding browse this site in IE and...
1
908
by: JayPea | last post by:
I have a bitmap or image object that has a pixel format of 32bppArgb. Is there a fast way to determine if the picture is actually using transparency? I say fast b/c I already know the slow way - test every pixel. thanks p.s. long time reader, first time poster :)
2
1950
by: susan | last post by:
Hi, When I place a picture with a transparant background on a form, the background shows white. How is this possible? Thanks, Susan
0
7276
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7182
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...
0
7408
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. ...
0
7581
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...
0
7548
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5714
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...
0
1624
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 we have to send another system
1
825
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
488
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...

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.