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

  • Thread starter Thread starter Ignacio Domínguez
  • Start date Start date
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
 
there is 2 thig to set.

SetStyle(ControlStyles.Opaque, false);
BackColor(aTransparentColor);
 
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..
 
Back
Top