Solved

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

Posted on 2016-11-24
5
13 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

777 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