Solved

Clicking on a form makes other runtime forms to hide behind the mainform.

Posted on 2016-11-24
5
10 Views
Last Modified: 2016-11-29
Hello,

is there any way that clicking any conrol on the form make other run time created forms to stay in front.

Cheers
0
Comment
Question by:RIAS
  • 3
  • 2
5 Comments
 
LVL 19

Expert Comment

by:darbid73
ID: 41900290
I think you can make your other forms Forms TopMost which might give you the desired effect.

Another alternative might be to use the Windows API but lets see if TopMost is what you want.

A third option will be to control it yourself by catching the OnFocus event and then actually making the other forms come back to the top.
0
 

Author Comment

by:RIAS
ID: 41900292
Topmost has one annoying manner that it always remains on topmost of the desktop. Can topmost be set only till the application level.
0
 
LVL 19

Expert Comment

by:darbid73
ID: 41900320
0
 

Accepted Solution

by:
RIAS earned 0 total points
ID: 41900336
This worked :

 I've removed TopMost = True, and Iadded f.Owner = main form
and it works just as I wanted.
0
 

Author Closing Comment

by:RIAS
ID: 41905458
Found the solution.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
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…

895 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

11 Experts available now in Live!

Get 1:1 Help Now