Visual Studio中,改变应用程序图标,怎么样? [英] Visual Studio, change app icon, how?

查看:284
本文介绍了Visual Studio中,改变应用程序图标,怎么样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作在Visual Studio 2005中第一次的C#项目,我想知道是否有什么特别需要做的,从改变项目属性正确的资源除了更改应用程序图标。

I am working on a first time C# project in Visual Studio 2005 and I am wondering if there is anything special that needs doing to change the application icon apart from changing the correct resource in the project properties.

我设法查看在资源管理器中显示的新图标,但在应用中,托盘中的图标和任务栏保留为旧图标。

I manage to view the new icon displayed in Explorer, but the icon in the application, the tray, and the task bar stays as the old icon.

我想知道,如果这有什么与Windows Vista也许缓存的应用图标,从此没有真正刷新它。同样的情况,在资源管理器中,如果你有缩略图打开。

I am wondering if this has anything to do with Windows Vista perhaps caching the applications icon and from then on not really refreshing it. The same happens in Explorer if you have thumbnails turned on.

如果它确实缓存的图标,我能做些什么来更新/删除缓存,而且是什么它基于(GUID吧?而不是文件名,虽然我改变了这一切,仍然是相同的)。

If it does indeed cache the icon, what can I do to update/delete the cache, and also what is it based on (GUID perhaps? Not file name though as I changed that and still the same).

感谢

推荐答案

你试过设置的 Form.Icon (的WinForms)或 Window.Icon (WPF)?

Have you tried setting a Form.Icon (Winforms) or Window.Icon (WPF)?

这篇关于Visual Studio中,改变应用程序图标,怎么样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆