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

I

Ignacio Domínguez

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
 
L

Lloyd Dupont

there is 2 thig to set.

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

Ignacio Domínguez

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..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top