-
Feb 19th, 2012, 03:50 AM
#1
Thread Starter
Member
Transparent picturebox
how can I make picturebox where background would be transparent? for transparent .PNG image?
Thanks!
Last edited by Hece; Feb 19th, 2012 at 04:44 AM.
-
Feb 19th, 2012, 11:10 AM
#2
Re: Transparent picturebox
Which programming language, and version, are you using?
-
Feb 20th, 2012, 02:51 AM
#3
Thread Starter
Member
Re: Transparent picturebox
Visual Basic Express Edition 2008
-
Feb 20th, 2012, 11:00 AM
#4
Re: Transparent picturebox
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
Last edited by boops boops; Feb 20th, 2012 at 11:05 AM.
-
Feb 20th, 2012, 01:07 PM
#5
Thread Starter
Member
Re: Transparent picturebox
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|