469,362 Members | 2,441 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,362 developers. It's quick & easy.

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 35889
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Chris Coho, Jr. | last post: by
3 posts views Thread by Mr. x | last post: by
7 posts views Thread by Scott Mackay | last post: by
1 post views Thread by Andrew E Chapman | last post: by
2 posts views Thread by Pascal | last post: by
reply views Thread by ZikO | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.