VB.NET Transparent BG with PNG

Posted on 2009-04-15
Last Modified: 2012-05-06
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!
Question by:steverguy
    LVL 96

    Accepted Solution

    .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.
    LVL 1

    Author Comment

    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.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
    Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now