473,396 Members | 2,010 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,396 software developers and data experts.

Transparency in C# - Labels? PictureBoxes? - Don't make this one of the unanswered posts please..

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? I that actually possible?

Thanks in advance

Ignacio Domínguez
Nov 13 '05 #1
3 36022
yes it is possible

"Ignacio Domínguez" <ig*******@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
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? I that actually possible?

Thanks in advance

Ignacio Domínguez

Nov 13 '05 #2
there is 2 thig to set.

SetStyle(ControlStyles.Opaque, false);
BackColor(aTransparentColor);

"Ignacio Domínguez" <ig*******@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
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? I that actually possible?

Thanks in advance

Ignacio Domínguez

Nov 13 '05 #3
Thanks for the quick answer!!!Unfortunately it's not working as expected.
I'm able to make the labels transparent but they're too transparent! ;)

Now the label placed over the image creates a "hole" in the image. I can see
not only what is behind the label, but also what is behind the entire form.
I wanted to be able to see the image behind the label and whatever was
behind the form behind the image. Maybe I'm doing something I'm not supposed
to..
"Lloyd Dupont" <ll***@galador.net> wrote in message
news:em*************@tk2msftngp13.phx.gbl...
there is 2 thig to set.

SetStyle(ControlStyles.Opaque, false);
BackColor(aTransparentColor);

"Ignacio Domínguez" <ig*******@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
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? I that actually possible?

Thanks in advance

Ignacio Domínguez


Nov 13 '05 #4

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

Similar topics

10
by: Chris Coho, Jr. | last post by:
Ok, I'll explain the whole problem because there may be several ways to solve this and hopefully someone knows one. What I'm doing is creating a specialty template editor, similar to say a corel...
3
by: Mr. x | last post by:
Hello, I would like that my image's background color will be transparent. What I have is only paintbrush. My image is *.jpg format (I have tried to save it as *.gif format, and I got less...
7
by: Scott Mackay | last post by:
Hi, I'm using visual studio dotnet 2002 programming in vb can anyone tell me how I can handle the mousedown event for pictureboxes I create dynamically at runtime? I've tried setting the...
1
by: Andrew E Chapman | last post by:
I am having a problem with pictureboxes being trasnparent to some form objects, but not others (I want their transparent regions to be transparent to everything). So, say I have a background image...
1
by: Rohan | last post by:
Hi There, Is it possible to rotate or resize pictureboxes, labels, textboxes at runtime? And I even wanted to make textbox and label controls Transperent ?
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,...
0
by: ZikO | last post by:
Hi. I've experienced one problem. Im using three froms. Two of them are maximized, whereas one is normal form with transparency. Transparency stops working, that is I can see the color which...
2
by: toby | last post by:
Hi, After the great help I received to create PictureBox arrays I now have another problem. I want to be able to position transparent pictureboxes (with a small rectangle drawn in them) next...
7
EntryTeam
by: EntryTeam | last post by:
I'm writing turn based logic game, and transparency doesn't seen to work right: screenshot Person model is .GIF in picturebox, buildings are .GIF in pictureboxes, mainform background is .bmp...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...
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...
0
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.