Keeping MDI child form TopMost?

J

Johnny Jörgensen

I've got an MDI form with X child forms. ONE of these forms I want to keep
on top of the others.

I've set TopMost to true, but it doesn't work.

Can anybody give me an idea about how to accomplish that?

Cheers,
Johnny J.
 
Z

zacks

I've got an MDI form with X child forms. ONE of these forms I want to keep
on top of the others.

I've set TopMost to true, but it doesn't work.

Can anybody give me an idea about how to accomplish that?

Cheers,
Johnny J.

Bringing an MDI child window from the background to the foreground
fires its Activate event. You will need to put code in the child
form's activate event to check to see if that form is the one you want
to keep on top, and if not, manually fire the BringToFront event for
the one you want to keep on top.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top