开发者

Picturebox transparency

can anyone help me how to apply transparency on picturebox on Winforms? I have a panel as a main container having a background picture, and I have a picturebox which overlapped on it. So all I need is to have a transparency on pictu开发者_JS百科rebox.


Set the Backcolor property of the PictureBox to Transparent.

Ofcourse, make sure that the image you're using is transparent as well (i.e. no background color).


Go to the properties of the PictureBox and set the Back Color to "Transparent".

With code you can do it like:

    pictureBox1.BackColor = Color.Transparent;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜