Solved

How to tell if a MDIChild form is Active

Posted on 2014-10-22
5
96 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 62

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 62

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How can one ComboBox's items be determined by another? 9 26
Round a string to two digits 12 30
Setting runtime form location 4 29
Protecting vb6 & .Net code Obfuscation 18 94
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
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 (http://www.ecb.europa.eu/stats/exch…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

919 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now