Solved

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

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

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

Suggested Solutions

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 …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

839 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