Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Button with transparent image

$
0
0

Hi,

I have a Button and assigned an Image in the Forms designer. It's a 32 bit Png image with an alpha channel. In the designer it looks as expected:

This means, the button's own color is seen in the transparent areas of the image.

But at runtime it looks different:

So, in the transparent areas of the image, the color of the button's container (blue) is seen.

Is there a setting that causes/prevents this at runtime? I don't want to write additional code.


Armin


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>