In my code I would like that the PictureBox.Location
changes when a certain event is triggered. That is not the problem though, the problem is that I dont understand what the difference between setting the Location in the Designer to 310;12
and with System.Drawing.Point(310;12)
.
In my case System.Drawing.Point(310;12)
sets the position of the image way too far to the right. The point that I then tried out and fits with the designers Point is 232;12
.
What is causing this and is there a way to fix it?
EDIT: Here is the code for changing the Location of the PB:
this.ball.Location = new Point(
232,
12
);
EDIT: Here are my steps that I did:
1. Create a Form
2. Create 2 buttons
3. Create a PictureBox and set its location to 310;12 in the designer
4. Trying to rearrange the picturebox with the buttons; one that sets the location to somewhere else and one that sets the picturebox back to its original location.