Solved

TopMost property in MdiParent

Posted on 2004-10-07
7
482 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
[X]
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
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

733 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