How to Add Sub Items to a MenuStrip's ToolStripMenuItem in C#
问题 I have added a menustrip1 into my windows form and I statically added one toolstripmenuitem (WindowstoolStripmenuItem) to that menustrip1 . And I have created a toolstripmenuitem dynamically. I want to add this dynamic toolstripmenuitem to the static menustripitem(WindowstoolStripmenuItem) which is created statically on design time. ToolStripMenuItem itm = new ToolStripMenuItem(); itm.Name = "fm1"; itm.Text = "Form1"; How can I add this subitem to the static menustrip's Windows item. 回答1: You