I'm programing in C# on Visual Studio 2016, and I'm making a game. I need to repeat a pictureBox. It should begin on the right side of the screen, and move to the left side of the screen.
How can I do this? I currently have this code:
while (pictureBox4.Location.X == -10 && pictureBox4.Location.Y == -2)
{
pictureBox4.Location = new Point(pictureBox4.Location.X - x, pictureBox4.Location.Y - y);
}
x & y are random variables.