Solved

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

Posted on 2016-11-24
5
16 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
[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
  • 3
  • 2
5 Comments
 
LVL 20

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 20

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

Industry Leaders: 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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

759 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