By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,673 Members | 1,268 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,673 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.