MDI Child activated event not firing up

Posted on 2006-05-23
Last Modified: 2008-02-01
Hi All

I am building and MDI application in, i have an main mdi form and some child forms. one the child form displays another form, which is configured to be a dialog box, once that dialog box is closed, the child form, which is already opened in the mdi form, does an activated event, or enter event.

I am trying to refresh janus grid control on that form, upon changes occured in the dialog box.

any help would be great!
Question by:shkhurram
    LVL 6

    Accepted Solution

    Use the Activated Event of the Form for refreshing the data provided by the dialog box

    Write the code for refreshing the form data on the Activated Event of the Form (the form which is opening the dialog box)

    LVL 2

    Expert Comment

    by:anwar ul haque
    Yes Activated event will fire.
    LVL 1

    Author Comment

    hi all....

    i tried the activate event of the form, the form which is opening the dialog box and this event fires up once the form is activated. Once the dialog box is opened and the closed, the focus automatically shifts to the original form, and then the activate event does not file.

    However, i tried another solution, the activate event on the main MDI parent form does fire, and all i had to do was to write some code to determine which child form are active and then i wrote the code for refreshing the data and it work.

    I guess i had to award point as you people replied.


    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    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 …
    1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    734 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

    16 Experts available now in Live!

    Get 1:1 Help Now