Category / Section
What is the reason for MDIListMenuItem property does not work with VS 2005 MenuStrip component in WinForms TabbedMDIManager?
1 min read
Reason for MDIListMenuItem does not work with menu strip component
TabbedMDIManager.MDIListMenuItem uses System.Windows.Forms.MenuItem for its implementation. Since .Net 2.0 MenuStrip uses System.Windows.Forms.ToolStripMenuItem, so it is not possible to associate TabbedMDIManager.MDIListMenuItem (MenuItem) to ToolStripMenuItem. But this can be achieved by TabbedMDIManager.MDIListToolStripItem. Please refe the below code snippet which illustrates this:
C#
this.tabbedMDIManager.MDIListToolStripItem = this.openToolStripItem;
VB
Me.tabbedMDIManager.MDIListToolStripItem = Me.openToolStripItem