I have a picture which i want to display above another picture. so i use this answer How to make picturebox transparent?. But now when i add another picture (pictureBox3) it doesn't transpar with the first one (pictureBox2). This is how it is look like - Do not pay attention to the third green picture. pictureBox1 is the black shape. My code:
public Form1()
{
InitializeComponent();
Control[] controls = { pictureBox2, pictureBox3 };
pictureBox1.Controls.AddRange(controls);
pictureBox2.Location = new Point(95, 10);
pictureBox3.Location = new Point(150, 40);
pictureBox2.BackColor = Color.Transparent;
pictureBox3.BackColor = Color.Transparent;
}
How can i make it transaer with all the pictures?