All the good time. Faced such a problem: there are several pickers with different PNG pictures in the background. you need to impose them on each other so that the latter does not overlap earlier ones. I try this:

PictureBox pb = new PictureBox(); { Size = pbx_StylePic.Size; Location = new Point(0, 0); BackColor = Color.Transparent; BackgroundImage = Image.FromFile("styles / "+ pb.Name +".png"); }; pbx_StylePic.Controls.Add(pb); 

I create a new PictureBox in the background image container, but it gives an error: The control does not support transparent background colors. Help solve the problem. Maybe I'm in the code that messed up? Thank!

    1 answer 1

      { RadioButton _rb = sender as RadioButton; string path = "styles/shirt/" + _rb + ".png"; Image im = Image.FromFile(path); Graphics gr = pbx_StylePic.CreateGraphics(); gr.DrawImage(im, new Point(0,0)); }