Link to home
Start Free TrialLog in
Avatar of amjedmsa
amjedmsa

asked on

change form starting position

i know this question is easy but i cant figure it out
all i want to do is when i start the application it will start were i tell
it to in an X,Y point say 554,312 or something like that
please help thank u
ASKER CERTIFIED SOLUTION
Avatar of JDuncan
JDuncan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TheLeader
TheLeader

you can use registry, if you would like or ini
or also you can ClientOrigin property of the form.

anyway, check these examples:
http://greatis.com/delphi/forms-setposition.html
http://www.webtechcorp.com/web-developer-training-delphi-tip-7.htm
http://kanadepro.com/delphistuff/sampcode.mv?listTipsScreen+6#15

full code written

hope it helped ...

Just set Form1.Left,Form1.Top to new coordinates in the FormShow or FormCreate event.
if the user's display resolution has changed then the form will be in bad postion
you should read the 3rd link above
Why not position it at design time and set Form1.Position to poDesigned?
Avatar of amjedmsa

ASKER

JDuncan u did it
thank u every one for your help iam very pleased with ur ansewers
and i would give u all the points JDuncan for getting exactly what iwant to do thanks again and to u all