首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >图标JumpList Windows7

图标JumpList Windows7
EN

Stack Overflow用户
提问于 2011-11-10 05:43:49
回答 1查看 587关注 0票数 0

此链接起作用

代码语言:javascript
复制
string notepadPath = Path.Combine(Environment.SystemDirectory, "notepad.exe");
                JumpListLink jlNotepad = new JumpListLink(notepadPath, "Notepad");
                jlNotepad.IconReference = new IconReference(notepadPath, 0);

但在此链接中,图标不会出现

代码语言:javascript
复制
string myapp = Path.Combine(Environment.CurrentDirectory, "MyApp.exe");
            JumpListLink jlapp = new JumpListLink(myapp, "My App");
            jlapp.IconReference = new IconReference(myapp, 0);

为什么?

图标只对Windows =(文件)有效

EN

回答 1

Stack Overflow用户

发布于 2011-11-10 05:49:27

应将图标作为嵌入资源添加到.NET windows窗体应用程序中。那么它就会起作用。

看看这篇关于代码项目的文章:Windows 7 / VS2010 demo app

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8072146

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档