Windows Form – How to Transparent background Label over PictureBox

descarga

Question:

I need to put a label over a picture box in Windows Form with a transparent background.

Solution;

Add the below code inside the constructor


Point pos = this.PointToScreen(lbl.Location);
pos = pictureBox1.PointToClient(pos);
lbl.Parent = pictureBox1;
lbl.Location = pos;
lbl.BackColor = Color.Transparent;

Leave a comment