Solved

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

Posted on 2006-11-01
5
172 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
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 …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now