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,
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,
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
ASKER