C# 图标跳转列表Windows 7
这个链接起作用了C# 图标跳转列表Windows 7,c#,winforms,visual-studio-2010,C#,Winforms,Visual Studio 2010,这个链接起作用了 string notepadPath = Path.Combine(Environment.SystemDirectory, "notepad.exe"); JumpListLink jlNotepad = new JumpListLink(notepadPath, "Notepad"); jlNotepad.IconReference = new IconReference(notepadPath, 0); 但
string notepadPath = Path.Combine(Environment.SystemDirectory, "notepad.exe");
JumpListLink jlNotepad = new JumpListLink(notepadPath, "Notepad");
jlNotepad.IconReference = new IconReference(notepadPath, 0);
但在此链接中,图标不会出现
string myapp = Path.Combine(Environment.CurrentDirectory, "MyApp.exe");
JumpListLink jlapp = new JumpListLink(myapp, "My App");
jlapp.IconReference = new IconReference(myapp, 0);
为什么?
图标仅适用于Windows=(您应该在.NET Windows窗体应用程序中添加一个图标作为嵌入式资源。然后它就可以工作了 看看这篇关于代码项目的文章: