Dynamically adding ToolStripMenuItems to a MenuStrip (C#/ Winforms)

后端 未结 4 1498
小蘑菇
小蘑菇 2021-02-18 18:53

I have my solution implemented (basic solution) and I\'m happy.

Problem is when I add new items to a ToolStripItemCollection using the \'Add\' method, I get a few overl

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-18 19:20

    You can simply pass null for the image.

    Menu.DropDownItems.Add(Text, null, EventHandler);
    

提交回复
热议问题