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,
LVL 5
jason987Asked:
Who is Participating?
 
jason987Author Commented:
Everything I wanted to do could be done through form controls with no code.
0
 
jason987Author Commented:
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. t6est
0
 
MaximumIQCommented:
What's your ImageTransparentColor property set to for the image control?
0
 
MaximumIQCommented:
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.
0
 
mlmccCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.