• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 479
  • Last Modified:

VB.NET Transparent BG with PNG

I have a PNG - i created it in photoshop - it's a watermark type image.
I bring it into Visual Stuido 2005 and assign it to a PictureBox.  When i do this, the background becomes the "Control color" and i can see the watermark image.  If i move the PictureBox over another PictureBox, I don't get the watermark effect.  Instead, it shows the "Control color" with the watermark, completely blocking out the image underneath.

I've tried changing the PictureBox's background to Transparent, but this doesn't work.

Any ideas?

Thanks for your help!
0
steverguy
Asked:
steverguy
1 Solution
 
Bob LearnedCommented:
.NET doesn't support "true transparency" very well, and you get these strange kind of effects.  I haven't found any good way around it, but that doesn't mean that a way doesn't exist.
0
 
steverguyAuthor Commented:
I ended up loading the image without using the PictureBox control.  This did the job.
It's too bad the PictureBox control doesn't support true transparency - it would probably make things easier.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now