Solved

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

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

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

0
Comment
Question by:riceman0
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

808 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