Faced such a problem and can't fix it.

On the form there is 2 pictureBox'a - screenshot 1

Pictures are loaded there like this:

  imageList1.TransparentColor = Color.Transparent; pictureBox2.Image = imageList1.Images[0]; pictureBox1.Image = imageList1.Images[1]; 

All pictureBox properties have BackColor = Transparent .

When assembling, everything seems to be ok - screenshot 2 .

But when moving, a picture with a shadow "cuts off" the second - screenshot 3 .

Well, I need to look like this (the shadow was cast on the second picture) - screenshot 4 .

Tell me, please, how to implement it?

enter image description here

  • WinForms or WPF? - VladD
  • There are windows forms. - Nk185

0