On the form there is a panel element in which I move the picture ( picturebox ):
//перемещаемся в право pictureBox1.Left += 50; //перемещаемся в низ pictureBox1.Top += 50; Those. moves in all directions by 50. Tell me how to make the picture not go beyond the bounds of the panel element?