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:
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
.