How to tell if a MDIChild form is Active

Posted on 2014-10-22
Last Modified: 2014-10-22
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.
Question by:BlakeMcKenna
  • 2
  • 2
LVL 15

Expert Comment

by:David L. Hansen
ID: 40397093
The Form.MdiChildActivate event is always triggered when the MDI child form get activeated; just handle the event and you've there.
LVL 63

Accepted Solution

Fernando Soto earned 500 total points
ID: 40397121
You can use the ActiveMdiChild Property of the MDI main form.

Author Comment

ID: 40397147

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.


Author Closing Comment

ID: 40397155

That's what I was looking for!

LVL 63

Expert Comment

by:Fernando Soto
ID: 40397176
Not a problem BlakeMcKenna, glad to help.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

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 …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 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