Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找使用此命令包含图标的方法:
contextMenuStrip1.Items.Add("名称");
你甚至试图在谷歌上找到答案吗?干得好:
var item = new ToolStripMenuItem("Name"); item.Image = Properties.Resources.Icon; contextMenuStrip1.Items.Add(item);