Solved

change form starting position

Posted on 2003-11-28
6
183 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now