I have a problem. I'm doing a simple game which consists of moving a picturebox every time I press a key and to move the PictureBox I use:
pictureBox1.Location = new Point(pictureBox1.Location.X+10, pictureBox1.Location.Y);
And I've noticed that while moving my pictureBox in the form the application consumes more and more ram memory, I guess that is because many New Point is made. Please someone help me solve this problem?