简体   繁体   中英

Transparent picturebox

I'm trying to add an icon to a Win Forms project, but I can't get the transparency working. I've tried with several different images but I'm not able to set the background color to blue.

What am I doing wrong?

在此处输入图片说明

Change back color of picturebox to Color.Transparent.

You can also try to use png file with transparency channel.

如前所述,PictureBox是透明的,您需要使用透明图像(例如PNG)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM