Solved

Question about  - my Form

Posted on 2000-03-13
6
156 Views
Last Modified: 2010-04-04
How can do that my form always located behind all other windows even if I click on it? - something like in a Desktop (shell) program? And how after that make it possible to be active when I want it...?

Can you show it in sample?
0
Comment
Question by:Masonok
  • 4
  • 2
6 Comments
 

Accepted Solution

by:
Gurkan earned 50 total points
ID: 2614846
Hi,
You can use SetWindowPos function

I have no time for exact answer but u can find details from help file. Examples:

SetWindowPos(wnd,HWND_TOPMOST,20,20,200,200,0);

SetWindowPos(wnd,HWND_BOTTOM, 40,40,150 ,150 , SWP_NOACTIVATE);
0
 

Author Comment

by:Masonok
ID: 2615031
Where should I place this function?
0
 

Expert Comment

by:Gurkan
ID: 2615065
did u try onshow
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.

 

Author Comment

by:Masonok
ID: 2615082
Yes. But but It seems that nothing going on!

0
 

Expert Comment

by:Gurkan
ID: 2615091
give me time
I'll try and give the code if I can do it
0
 

Expert Comment

by:Gurkan
ID: 2615107
I put the code below n onpaint event and its ok

SetWindowPos(Form1.Handle,HWND_BOTTOM,20,20,200,200,0);
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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

861 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

25 Experts available now in Live!

Get 1:1 Help Now