473,624 Members | 2,557 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Keeping MDI child form TopMost?

I've got an MDI form with X child forms. ONE of these forms I want to keep
on top of the others.

I've set TopMost to true, but it doesn't work.

Can anybody give me an idea about how to accomplish that?

Cheers,
Johnny J.
Jul 24 '07 #1
1 4131
On Jul 24, 8:23 am, "Johnny Jörgensen" <j...@altcom.se wrote:
I've got an MDI form with X child forms. ONE of these forms I want to keep
on top of the others.

I've set TopMost to true, but it doesn't work.

Can anybody give me an idea about how to accomplish that?

Cheers,
Johnny J.
Bringing an MDI child window from the background to the foreground
fires its Activate event. You will need to put code in the child
form's activate event to check to see if that form is the one you want
to keep on top, and if not, manually fire the BringToFront event for
the one you want to keep on top.

Jul 24 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
6942
by: Frank T. Clark | last post by:
How do I redirect or capture keydown events in a parent form from a child form? I have a main form which displays another informational form marked "SizableToolWindow". Form child = new ChildForm(); this.AddOwnedForm (child);
2
2242
by: Kalv | last post by:
Hi, I have produced a MDI application in C#. And basically i produce a child form from the container and then i produce another child from that child. I do this by (code in child frmCustomers) frmCustomerSummary = new frmMatchSummary(....); frmCustomerSummary.MDIParent = this.MDIParent; frmCustomerSummary.Show();
8
4927
by: CJack | last post by:
hy, I have an mdi application, i create a child form and I want to know when a button is pressed while that child form is loaded. I have this code: private void frmTestBaby_KeyUp(object sender, System.EventArgs e) { MessageBox.Show("keyboard button pressed!"); } Following is the code to load the frmTestBaby
5
3838
by: Randy | last post by:
The following code, which runs when I click File->Save in my main form, finds my save button in my mdi child for just fine. The question is: how do I invoke the Save method in the child form? Thanks.... protected void SaveMenuSelect(Object sender, System.EventArgs e) { Form form = (Form)this.ActiveMdiChild; foreach(Control c in form.Controls)
3
4729
by: Zack Sessions | last post by:
I am using VB.NET 2003. I have read the threads concerning the problem where the FormStartPosition of CenterParent is ignored if the form is displayed with the Show method as opposed to the ShowDialog method. I am having a similar problem and I found a thread that had the following code in the child form's Load event: Me.Location = New Point(( _ Me.MdiParent.ClientSize.Width - Me.Width) * 0.5,
1
934
by: DebbieC | last post by:
I have a MDI parent form with a RichTextBox docked on the right hand side. When I open a child form part of it is under the RichTextBox unless I move it over. Is there anyway to set my child forms to display on top of the RichTextBox?
4
3366
by: jxiang | last post by:
I created a child form that is much bigger than the MDI form in VB.Net. I am trying to capture the whole child form and save as an image or sent to printer. I tried to use BitBlt to capture the child form but I can only capture the visible part of the child form whatever you scroll to any part of the form. I have read the article in site http://www.fengyuan.com/article/wmprint.html unforturely it is for C++ instead of VB.Net. I tried to...
2
3719
by: Realite | last post by:
Hi, I want to use child form,where i'm in mdi form i push the button and the child form is showing,and i push again and the child form is showing again and again and again. How am i solve this? Thank's...Realite
4
4824
by: Mandragon03 | last post by:
I have an MDI form that has 4 child forms that are locked on top of any other child form in the MDI. I want to unlock these 4 forms so they are not always on top of all the other forms in the MDI. When I set ChildForm1.TopMost = false; It does nothing. Is there another another property I should be looking at? Thanks!
0
8249
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8179
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8633
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2613
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1797
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1493
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.