Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 20
  • Last Modified:

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

Hello,

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

Cheers
0
RIAS
Asked:
RIAS
  • 3
  • 2
1 Solution
 
darbid73Commented:
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
 
RIASAuthor Commented:
Topmost has one annoying manner that it always remains on topmost of the desktop. Can topmost be set only till the application level.
0
 
darbid73Commented:
0
 
RIASAuthor Commented:
This worked :

 I've removed TopMost = True, and Iadded f.Owner = main form
and it works just as I wanted.
0
 
RIASAuthor Commented:
Found the solution.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now