Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Forcing a form to be apeared behind another

Posted on 2003-11-25
3
Medium Priority
?
166 Views
Last Modified: 2010-04-05
How Can I enforce a form to be appeared behind another form, always!
0
Comment
Question by:khalil_moghaddam
3 Comments
 
LVL 23

Accepted Solution

by:
Ferruccio Accalai earned 150 total points
ID: 9816505
in form onactivate:

SetWindowPos(Handle,HWND_BOTTOM,Left,Top,Width,Height,0);
F 68 ;-)
0
 
LVL 3

Expert Comment

by:JDuncan
ID: 9816927
How about Form1.SendToBack
0
 
LVL 5

Expert Comment

by:Hypoviax
ID: 9822514
Expanding on JDuncan's idea:

On a timer at an interval of about 500 try:

Formx.SendToBack

If you want the other form on top then do the same sort of thing

Formy.BringToFront

Regards,

Hypoviax
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Screencast - Getting to Know the Pipeline
Suggested Courses

824 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