How to tell if a MDIChild form is Active

My windows application has a MDIForm as the main form with multiple MIDChild forms. How can tell which MDIChild form is the ActiveForm? I couldn't seem to find how to determine this in the MSDN documentation.
BlakeMcKennaAsked:
Who is Participating?
 
Fernando SotoConnect With a Mentor RetiredCommented:
You can use the ActiveMdiChild Property of the MDI main form.
0
 
David L. HansenProgrammer AnalystCommented:
The Form.MdiChildActivate event is always triggered when the MDI child form get activeated; just handle the event and you've there.
0
 
BlakeMcKennaAuthor Commented:
David,

Thanks for your response, however, I looked on MSDN for the MDIChildActivate Event and unfortunately it wasn't very helpful. Perhaps my screenshot can explain what I'm trying to do.

Thanks!
Screenshot.jpg
0
 
BlakeMcKennaAuthor Commented:
Fernando,

That's what I was looking for!

Thanks!
0
 
Fernando SotoRetiredCommented:
Not a problem BlakeMcKenna, glad to help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.