Solved

How do I get a reference to the active child of my MDI parent?

Posted on 2006-11-01
5
177 Views
Last Modified: 2010-04-23

Should be simple, can't seem to find the property.  Thanks!

0
Comment
Question by:riceman0
[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
  • 3
  • 2
5 Comments
 
LVL 18

Accepted Solution

by:
Ravi Singh earned 125 total points
ID: 17851575
Hi, you can refer to the active child like below (from the parent):

Me.ActiveMdiChild
0
 

Author Comment

by:riceman0
ID: 17851640

Doh!  That didn't show up in Intellisense until I changed the tab from "Common" to "All".  

Follow-on question, what is the difference between those two tabs?  Does it mean "commonly used?"  or something more technical?  If the latter, is it Microsoft's classification, or is it dynamic somehow?
0
 

Author Comment

by:riceman0
ID: 17851662

Doh again... I meant "if the former."  I need a nap.
0
 

Author Comment

by:riceman0
ID: 17851685

Another follow on question, is there a property of the child window that will tell you if it is the active child window?

And is there a VB.NET equivalent to ZOrder?

(just asking while I have your attention, in case you know offhand; not trying to piggyback questions...  thanks!)
0
 
LVL 18

Expert Comment

by:Ravi Singh
ID: 17851835
Hi,

Yes the intellisense Common tab just shows the commonly used methods/properties/events. I don't think its dynamic, just a predefined classification.

You can check if the current MDI child form is the active form like:

If Me.MdiParent.ActiveMdiChild Is Me Then
            '...
End If

I'm not sure on the ZOrder question, sorry!



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

Suggested Solutions

Title # Comments Views Activity
ASP.NET Calendar Control 5 54
Find date of 2nd Thursday of each month 3 45
VB.Net Data Class 1 48
Help with adding xml file as datasource in MS Report 8 18
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

734 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