[英]Icon JumpList Windows 7
This Link work 此链接工作
string notepadPath = Path.Combine(Environment.SystemDirectory, "notepad.exe");
JumpListLink jlNotepad = new JumpListLink(notepadPath, "Notepad");
jlNotepad.IconReference = new IconReference(notepadPath, 0);
but in this link the icon doesn't appear 但在此链接中,图标不会出现
string myapp = Path.Combine(Environment.CurrentDirectory, "MyApp.exe");
JumpListLink jlapp = new JumpListLink(myapp, "My App");
jlapp.IconReference = new IconReference(myapp, 0);
why? 为什么?
The icon work only file of Windows =( Windows的图标仅工作文件=(
You should add an icon as embedded resource to your .NET windows forms application. 您应该将一个图标作为嵌入式资源添加到.NET Windows窗体应用程序中。 Then it will work.
然后它会工作。
have a look at this article on Code Project: Windows 7 / VS2010 demo app 看一下Code Project上的这篇文章: Windows 7 / VS2010演示应用程序
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.