If I have a form, the following code works:
Code: Select all
Form form = ... some form ....
int x = form.Location.X;
Code: Select all
form.Location.X = 5;
So how do I move a form?
Thanks.
Code: Select all
Form form = ... some form ....
int x = form.Location.X;
Code: Select all
form.Location.X = 5;
Code: Select all
Point location = form.Location;
location.X = 5;
form.Location = location;
Code: Select all
form.Location = new Point(5, form.Location.Y);