此链接起作用
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 =(文件)有效
发布于 2011-11-10 05:49:27
应将图标作为嵌入资源添加到.NET windows窗体应用程序中。那么它就会起作用。
看看这篇关于代码项目的文章:Windows 7 / VS2010 demo app
https://stackoverflow.com/questions/8072146
复制相似问题