Click here to Skip to main content
15,035,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, i need help with position

default form's coordinates start on top left

like this[^]

i want to change it to center how can i do this


sorry for my english

1 solution

you can contorl the form's position using the Left and Top properties inorder to center the form on the screen you can set the StartPosition property to FormStartPosition.CenterScreen notice StartPosition has to be set before the form is shown.
Member 7789198 20-Aug-11 7:27am
no i dont want this i want change the origin
Simon Bang Terkildsen 20-Aug-11 8:15am
Origin as in rotation around the axes?
Simon Bang Terkildsen 20-Aug-11 8:19am
Ah I think I get it now, you want the center of your form at 0,0 in your image?
then you should still use Left and Right you'll just have to calculate the values based on your forms width and height
Sergey Alexandrovich Kryukov 21-Aug-11 22:53pm
Agree, a 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900