Solved

TopMost property in MdiParent

Posted on 2004-10-07
7
476 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
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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 …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

832 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