Totally understood - - -
In this case, the entire form has a fully docked PictureBox with an image.
(I haven't tried setting the Transparency in code) I set the background
color of the label (on top of the picturebox) to transparent, using the
Properties window. I would expect the image (as you say) to show through the
label. However, instead of this, it shows a murky white color as the
background.
could it be because I'm using the picture box, instead of making the image
be the background image of the form?
> Label supports a transparent background, but some controls do not (ie,
> textbox).
[quoted text clipped - 9 lines]
> Clay Burch
> Syncfusion, Inc.
Chris Dunaway - 14 Feb 2007 16:19 GMT
> Totally understood - - -
> In this case, the entire form has a fully docked PictureBox with an image.
[quoted text clipped - 17 lines]
> > then the bitmap background of the form shows through the label as
> > expected.
When you set the background color of the label to Transparent, what
shows through it the Label's container. It's not a true transparent
label.
When you drag a label on top of a PictureBox, the Label's container is
still the form and not the picturebox. You need to set the parent
property of the label to the PictureBox then the PictureBox should
show through the label.