how can I make picturebox where background would be transparent? for transparent .PNG image?
Thanks!
Printable View
how can I make picturebox where background would be transparent? for transparent .PNG image?
Thanks!
Which programming language, and version, are you using?
Visual Basic Express Edition 2008
Just set the picture box's BackColor to Color.Transparent. You can do it in the designer or in code. Then you can put your transparent PNG in the BackgroundImage or the Image of the picture box.
But remember, transparency in Windows Forms is a bit limited. You can only see through to the parent of the picture box, which is normally the form. So if you put a transparent picture box on top of a button, for example, the button will not show. What you can see through the transparent parts is the form's BackColor and/or its BackgroundImage.
BB
ah, okay. Thanks!