how to add icon to context menu in c# windows form application

后端 未结 1 1294
我寻月下人不归
我寻月下人不归 2021-01-17 04:32

I am having a tree view in which if i right click any node context menu is displayed,Now i want to add icons corresponding to items in the context menu.

相关标签:
1条回答
  • 2021-01-17 05:09

    If you're talking about ContextMenuStrip control, you can do that either it in the designer, by clicking on the item and selecting "Set image...", or programmatically by changing the Image property of the ToolStripMenuItem.

    0 讨论(0)
提交回复
热议问题