How do you create an MDIList using the menuStrip?

It seems to have a IsMdiWindowListEntry, which would imply it's possible, but it's read only. Any thoughts

Brad Raulston


Answer this question

How do you create an MDIList using the menuStrip?

  • simsdn

    the menustrip has a property MdiWindowListItem to which you can already assign in design mode a menu which contains the mdi list
  • pu

    If anyone else is looking for the answer, the menustrip has a MDIWindowList property, which takes a menu strip item. That sets the MDIList............


    Brad Raulston


  • phoebe0078

    Though I set the MDIWindowList set the MenuStrip's MDIWindowListItem property to the ToolStripMenuItem it doesnt work. Any thoughts as to why
  • EBN

    Yep, there is a property on MenuStrip

    public ToolStripMenuItem MdiWindowListItem { get; set; }


    To create an MDIWindowList set the MenuStrip's MDIWindowListItem property to the ToolStripMenuItem which you want as the parent of the list. This is typically the "Window" ToolStripMenuItem. If that's set, we'll add an entry for each mdi child in that list. If you want to further customize what we have there, you can check for the bool IsMdiWindowListEntry on ToolStripMenuItem.

  • How do you create an MDIList using the menuStrip?