Image button transparent over image

stratus

Active Member
Licensed User
Longtime User
I have an image control which is parent for an image button but the button is not show transparent over the image.Is there any way to fix that;
edit:Now i realize that an image can not be parent control.So is there any way to display the transparency over the image;
 
Last edited:

Cableguy

Expert
Licensed User
Longtime User
If this is a Desktop app, try my ImageButtonEx...
 

klaus

Expert
Licensed User
Longtime User
You should remove your image control and draw it's content directly onto the background of the form with the DrawImage method.
Then the transparency of the ImageButton will work fine.
The image shown in the transparent part of the ImageButton is the image of the form's background and not the image of overlaying controls.

Attached a small test program showing it.

Best regards.
 

Attachments

  • ImageButton.zip
    7.9 KB · Views: 271

stratus

Active Member
Licensed User
Longtime User
Thanks it is working great.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…