How to set the opacity or transparency of a Panel in C#

Опубликовано: 02 Март 2026
на канале: TSN soft
3,951
41

How to set the opacity or transparency of a Panel in C#

code :-

var posi = this.PointToScreen(panel1.Location);
posi = pictureBox1.PointToClient(posi);
panel1.Parent = pictureBox1;
panel1.Location = posi;
panel1.BackColor = Color.FromArgb(180, 0, 0, 0);