Solved

change form starting position

Posted on 2003-11-28
6
184 Views
Last Modified: 2010-04-05
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
0
Comment
Question by:amjedmsa
6 Comments
 
LVL 3

Accepted Solution

by:
JDuncan earned 80 total points
ID: 9838549

Just set Form1.Left,Form1.Top to new coordinates in the FormShow or FormCreate event.
0
 
LVL 2

Expert Comment

by:TheLeader
ID: 9838578
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 ...
0
 
LVL 3

Expert Comment

by:JDuncan
ID: 9838593

Just set Form1.Left,Form1.Top to new coordinates in the FormShow or FormCreate event.
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 2

Expert Comment

by:TheLeader
ID: 9838600
if the user's display resolution has changed then the form will be in bad postion
you should read the 3rd link above
0
 
LVL 7

Expert Comment

by:sftweng
ID: 9838622
Why not position it at design time and set Form1.Position to poDesigned?
0
 

Author Comment

by:amjedmsa
ID: 9842718
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
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
code issue 8 127
Making delphi communicate with a c# service 16 102
how to resize animated Gif image in delphi ? 1 29
Dev express lookupcombo 3 26
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question