Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

TopMost property in MdiParent

Posted on 2004-10-07
7
Medium Priority
?
490 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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 1000 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

916 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