on form minimize?

Posted on 2006-05-19
Last Modified: 2008-02-01
what is the event for a mdi form on minimize?
Question by:addicktz
    LVL 44

    Assisted Solution

    Hi addicktz,

    there is no event for this in a form so probably also not for the mdi child window, what you can do is catch the resize event and check the Window state if it is FormWindowState.Minimized

    hope this helps a bit
    LVL 85

    Accepted Solution


            private void Form1_Resize(object sender, EventArgs e)
                if (this.WindowState == FormWindowState.Minimized)
                    // do something in here...
    LVL 44

    Expert Comment

    yes, perfect timing :)

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    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.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    745 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

    17 Experts available now in Live!

    Get 1:1 Help Now