Solved

How to tell if a MDIChild form is Active

Posted on 2014-10-22
5
104 Views
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.
0
Comment
Question by:BlakeMcKenna
  • 2
  • 2
5 Comments
 
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.
0
 
LVL 63

Accepted Solution

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

Author Comment

by:BlakeMcKenna
ID: 40397147
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
 

Author Closing Comment

by:BlakeMcKenna
ID: 40397155
Fernando,

That's what I was looking for!

Thanks!
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 40397176
Not a problem BlakeMcKenna, glad to help.
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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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 …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

713 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