Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Question about  - my Form

Posted on 2000-03-13
6
Medium Priority
?
164 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 

Accepted Solution

by:
Gurkan earned 200 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
Technology Partners: 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!

 

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

650 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