Link to home
Start Free TrialLog in
Avatar of jason987
jason987

asked on

Project to display tranparent image

Hello,

I am trying to do a project in VB (VS2010/2008) to just display and image onscreen with the "empty" parts of the image be transparent and show the underlying window.  I would appreciate it if someone could point me to a sample project that examples something like this or some sample code.  I am relatively new to VB but have been doing VBA and C++ for a long time.

I am familiar with how to create a form and picturebox but the grey background of the form shows behind the picture and I just want to show the desktop/etc in the background...

Thank you,
Avatar of jason987
jason987

ASKER

Actually I got everything I needed just by loading the miage in the background and setting the color to window and background to transparent (web) but for some reason the image doesn't display, a white X has just some of the pixels.  See attached. User generated image
What's your ImageTransparentColor property set to for the image control?
You can try making the backcolor of your form Red and also setting the TransparencyKey of the form to Red as well. Now the transparent area of the background image (Which would have showed up Red) will show transparent because the TransparencyKey of the form is also set to red.
ASKER CERTIFIED SOLUTION
Avatar of jason987
jason987

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike McCracken
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.