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
RIASAsked:
Who is Participating?
 
RIASAuthor Commented:
This worked :

 I've removed TopMost = True, and Iadded f.Owner = main form
and it works just as I wanted.
0
 
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:
Found the solution.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.