任务栏中的应用程序图标错误
我有一个 Windows 应用程序(C#),它在项目属性中设置了图标和清单设置。图标设置正确。我遇到的问题是,当用户从他/她的计算机启动应用程序并登录时,图标正确显示在表单窗口上,但任务栏中显示的图标是上次使用的应用程序的图标 -因此,如果我打开 MS Word 并关闭它,然后启动我的应用程序,即使名称正确,任务栏中也会显示我的应用程序的 Word 图标。
编辑 - 用户进入第二个屏幕后,任务栏中会显示正确的图标
我以前在 64 位机器上遇到过这个问题 - 该图标有 16X16 4 位 bmp 和 32X32 4 位 bmp 图像。我创建了一个新图像 64X64、4 位 bmp 文件,因此该图标有 3 个图像,这解决了 64 位机器的问题。
但是,在 Windows 2008 server- R1 -32 位计算机上,该问题再次出现。 有人知道如何解决这个问题吗?我在这里讨论的不是通知图标,而是任务栏中应用程序名称旁边显示的图标。 谢谢。 图标Q
I have a windows application(C#) that has the icon and manifest settings set in the project properties. The icon is set correctly. The problem I am having is when a user launches the application from his/her machine, and logs in, the icon is displayed correctly on the form window, but the icon that is displayed in the task bar is that of the last used application - so if I open MS word and close it, then launch my application, the icon for word is displayed for my application in the taskbar, even though the name is correct.
edit - after the user goes to the second screen, the correct icon shows up in the taskbar
I previously has this issue with 64 bit machines - the icon had 16X16 4 bit bmp and 32X32 4 bit bmp images. I created a new image 64X64, 4 bit bmp file, so the icon had 3 images, and that solved the problem with 64 bit machines.
However, the problem has come back again with Windows 2008 server- R1 -32 bit machine.
Does anybody have any clue how to solve this? I am not talking about notify icons here, but the icon that shows up right next to the application name in the taskbar.
Thanks.
IconQ
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
很难看出你的图标怎么会搞砸了。听起来像是损坏的图标缓存。链接的文章已经过时了,请在 superuser.com 上询问更多相关信息。
Hard to see how your icon could mess this up. It sounds like a corrupted icon cache. The linked article is quite outdated, ask more about this at superuser.com.
Microsoft 修复了 Shell32.dll 模块中的计时问题。
以下修补程序将解决您的问题:
http://support.microsoft.com/kb/2519550/ en-us
Microsoft Fixed issue with the Timing in the Shell32.dll Module.
Following Hotfix will Resolve your issue:
http://support.microsoft.com/kb/2519550/en-us
正如汉斯所说,这可能是一个损坏的图标缓存,但如果您在不止一台具有不同操作系统的计算机上遇到同样的问题,那您就太不走运了。
您可能有一个损坏的图标文件 - 我希望添加 64x64 图像有帮助的唯一方法是,如果它只是意味着文件被您的编辑器重写/重新生成。一个好的编辑器可能会有所帮助(例如,Visual Studio 一直有一个真正可怕的图标设计器,所以如果你使用它,它肯定不会有帮助 - 尽管通常只有当你超过 4bpp 时,VS 才会出现史诗般的失败) 。尝试 IcoFX,它是免费的,非常好,并且无论您要求它添加什么内容,都会生成可靠的图标文件。它还非常擅长缩放图像以快速生成完整的尺寸和分辨率。
一般来说,我会选择比 16 色质量更好的图标,并为操作系统提供大量变体可供选择(至少 16、32、64 像素方形,8bpp 和 24bpp)。我不记得我上次使用 16 色图标是在哪个世纪,但肯定不是这个:-)
As Hans said, it could be a corrupt icon cache, though you're damn unlucky if you are getting this same problem on more than one machine with different OSes.
It's possible you have a corrupt icon file - The only way I would expect adding of a 64x64 image to have helped is if it simply meant the file was rewritten/regenerated by your editor. A good editor may help (e.g. Visual Studio has always had a truly dreadful icon designer, so if you're using that it certainly won't be helping - although it's only usually if you go beyond 4bpp that VS goes for the epic fail). Try IcoFX, it's free, really good, and will produce reliable icon files regardless of the content you ask it to add. It's also very good at scaling images to quickly generate a full complement of sizes and resolutions.
In general I'd go for better quality icons than 16-colours, and supply plenty of variants for the OS to pick from (at least 16, 32, 64 pixels square at 8bpp & 24bpp). I can't remember which century I last used a 16 colour icon in, but it certainly wasn't this one :-)
这是 Windows Server 2008 的 Aero 主题的问题。如果您选择经典主题,效果就很好。 Microsoft 在 Office 2007 的 Outlook 显示 Powerpoint 图标方面也存在同样的问题。请参阅下面链接中的讨论。因此,一种选择是选择基本主题而不是 Aero 主题。
http://social. technet.microsoft.com/Forums/en-US/outlook/thread/89918687-66a1-4264-86b4-773bcc6ef373/
This is a issue with Windows Server 2008's Aero Theme. If you choose a classic theme it works just fine. Microsoft has the same issue with Office 2007's Outlook showing the Powerpoint Icon. See discussion in link below. So one choice is to select a Basic Theme not an Aero theme.
http://social.technet.microsoft.com/Forums/en-US/outlook/thread/89918687-66a1-4264-86b4-773bcc6ef373/