Home All Groups Group Topic Archive Search About

Transparent Picture boxes

Author
29 Nov 2006 2:55 PM
lord.zoltar
I have a couple of images I'm using to try and pretty up some forms.
They are PNG images with transparent parts. I have one of them partly
overlaying the other, but my problem is with the transparent parts: If
Image1 is over Image2, I cannot see Image2. The transparent parts of
the images are coloured with the background colour of the form, so it
seems that the transparency is somewhat respected - how do I get the
transparent part to show any controls (such as other picture boxes)
under the image?
Ages ago I had done some sprite animation in VB6 and a little bit when
Vb .NET first came out... I know it's possible to do what I want by
drawing to an image buffer etc etc... but it seems to be a lot more
work than I need since there's no animation and these images are not
likely to change much.

Author
29 Nov 2006 5:21 PM
lord.zoltar
Same applies to controls... is there any way to make a button
transparent so that the image below it is visible THROUGH the button? I
set it to have flat style and a transparent backcolour, and now the
background is whatever I make the parent containers', but I still can't
see the picturebox through the button.
Is this even possible?
Author
29 Nov 2006 8:11 PM
Steve Long
Can't you just set the BackColor to transparent?

S

<lord.zol***@gmail.com> wrote in message
Show quoteHide quote
news:1164820914.561931.105330@h54g2000cwb.googlegroups.com...
> Same applies to controls... is there any way to make a button
> transparent so that the image below it is visible THROUGH the button? I
> set it to have flat style and a transparent backcolour, and now the
> background is whatever I make the parent containers', but I still can't
> see the picturebox through the button.
> Is this even possible?
>