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;
精彩评论