list of open forms in menubar (c#)

Posted on 2009-02-16
Last Modified: 2013-12-17
Hi all,

How can I accomplish to have in my menubar an item that lists all the forms that are open in an application. See image attached.
I thought it was a simple line of code that you had to place in the menubaritem but I can't remember or seem to find it in this demo application..


Question by:Pit76
    LVL 19

    Assisted Solution

    How about having a public static global list and when each form opens add it to the list and when it closes remove it from the list then use this list to populate your menu.

    Accepted Solution

    I did some more digging and I found this. If I remember correctly this is what I was looking for :)

    Setting the MDIList property of a MenuItem                 to True, will give at runtime, a list of all open child                  forms. It will display a tick mark next to the active child window.

    LVL 19

    Expert Comment

    Nice one

    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

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    746 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

    18 Experts available now in Live!

    Get 1:1 Help Now