Solved

How to tell if a MDIChild form is Active

Posted on 2014-10-22
5
107 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

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 was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

737 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