Solved

change form starting position

Posted on 2003-11-28
6
182 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 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

23 Experts available now in Live!

Get 1:1 Help Now