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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

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


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

0
riceman0
Asked:
riceman0
  • 3
  • 2
1 Solution
 
Ravi SinghSenior Software EngineerCommented:
Hi, you can refer to the active child like below (from the parent):

Me.ActiveMdiChild
0
 
riceman0Author Commented:

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
 
riceman0Author Commented:

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

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
 
Ravi SinghSenior Software EngineerCommented:
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

Independent Software Vendors: 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!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now