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
Solved

TopMost property in MdiParent

Posted on 2004-10-07
7
481 Views
Last Modified: 2008-02-01
Hi,

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
0
Comment
Question by:staines
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 25

Expert Comment

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

Author Comment

by:staines
ID: 12250905
so how to use setwindowpos in vb.net?

can u give an example how to bring the it to the front?
thanks
0
 
LVL 7

Expert Comment

by:J_Mak
ID: 12255309
Use the 'Activate' property, or 'Focus' property.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

 

Author Comment

by:staines
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.
0
 
LVL 7

Expert Comment

by:J_Mak
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.
0
 
LVL 18

Expert Comment

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

Accepted Solution

by:
RonaldBiemans earned 250 total points
ID: 12256935
Hi staines,

here is a example of the setwindowpos

http://www.mentalis.org/apilist/SetWindowPos.shtml

there is a link on this page with an exxample

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

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

Suggested Solutions

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

840 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