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.
我的程序中有一个 ToolStripMenuItem。我的电脑上还有一个图标,为了简单起见,可以说它的路径是
c:\myicon.ico
我怎样才能让 ToolStripMenuItem 使用这个图标?
SomeToolStripMenuItem.Image = Image.FromFile("c:\myicon.ico")
ImageSource="c:\myicon.ico"