• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 117
  • Last Modified:

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.
0
BlakeMcKenna
Asked:
BlakeMcKenna
  • 2
  • 2
1 Solution
 
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
 
Fernando SotoRetiredCommented:
You can use the ActiveMdiChild Property of the MDI main form.
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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