Solved

TopMost property in MdiParent

Posted on 2004-10-07
7
468 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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now