Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


TopMost property in MdiParent

Posted on 2004-10-07
Medium Priority
Last Modified: 2008-02-01

I want to set one of the form in my parent form (container) to be topmost within all other forms inside the container, is it not possible?

I have been trying to set "Topmost = true" on a form inside its parent(container).
But it desn't stay on top. The other forms in the container can still overlaps it.

Please help.
many thanks
Question by:staines
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
  • 2
  • 2
  • 2
  • +1
LVL 25

Expert Comment

ID: 12249557
Topmost won't work in a MDI application. To do this you have this using the API setwindowpos

Author Comment

ID: 12250905
so how to use setwindowpos in

can u give an example how to bring the it to the front?

Expert Comment

ID: 12255309
Use the 'Activate' property, or 'Focus' property.
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Author Comment

ID: 12255430
yes, it can bring it front, but i want to keep it at the topmost.

what happens is it can go to the background if i click the other forms.

Expert Comment

ID: 12255820
Why don't just create a form which will not be a child of the Mdi form. You could use threads for example to open another form, independent of the MDI structure.
LVL 18

Expert Comment

ID: 12256711
why dont you make it a dialog on MDI form ?
LVL 25

Accepted Solution

RonaldBiemans earned 1000 total points
ID: 12256935
Hi staines,

here is a example of the setwindowpos

there is a link on this page with an exxample


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

722 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