MDI container form

Posted on 2004-11-11
Last Modified: 2010-04-23
Why mdi container doesn't respond to click event
Question by:f_asmaa
    LVL 18

    Expert Comment

    LVL 19

    Expert Comment

    Almost all mouse events are not supported by an MDI like Click, Mouse Up, Mouse Down
    Why?? Don't know

    If you want to make it work you can use a bit of turn-around Fill the area with a Panel and use its Click event.

    LVL 25

    Expert Comment

    Hi F_asmaa,

    This is by design, the Mdi parent was design to be used just as a container for the children that is why you cannot add controls to the parent either (atleast not is a useable way). Arif eqbal suggestion won't work because all your children will appear behind the panel.

    The Mdi parent actually exist of 2 windows.

    Author Comment

    Dear RonaldBiemans,

    What do you mean by "The Mdi parent actually exist of 2 windows"
    LVL 25

    Accepted Solution

    An MDI form is actually built using two Windows: the main MDI Window itself and a child window which contains the MDI child forms. This window is termed the "MDIClient" and can be seen if you point a tool like Spy++ at the MDI window:
    LVL 18

    Expert Comment

    Good show RonaldBiemans

    new thing for me :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    I'm currently working for a company where I have to upgrade over 50 VB6 programs to VB.NET 2008.  So far I'm about half way through, and I've learned quite a few tricks that drastically improve the performance of VB.NET apps. Because there are a…
    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…
    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…
    This video discusses moving either the default database or any database to a new volume.

    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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now