Windows 7任务栏图标无法正确显示 [英] Windows 7 task bar icon not displayed correctly

查看:83
本文介绍了Windows 7任务栏图标无法正确显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在用C#编写Windows窗体应用程序。我为主表单分配了一个图标,一个32x32的图标。当我通过按"F5"运行此应用程序时在Visual Studio上,或双击可执行文件,屏幕底部的应用程序图标正确显示
我的图标。


然而,在我使用Visual Studio安装程序构建msi并运行此msi并安装应用程序后,当它运行时,屏幕底部的应用程序图标不再显示我的图标 - 它显示Visual Studio默认图标。


出了什么问题?


谢谢!

解决方案

你是否在项目中包含了你的图标?


我猜不是。您必须"手动"添加它。在这里查看它是如何完成的:  http:// social。 msdn.microsoft.com/Forums/eu/winformssetup/thread/e0ac908d-8c33-4d99-88dd-d8d8be77d198



或者右键单击项目名称并选择Properites。然后在应用程序选项卡中查找Resources groupBox和Icon以及manifest radioButton。查找您的图标并进行设置。


Hi,

I am writing a Windows Forms application in C#. I assigned an icon, a 32x32 one, to the main form. When I run this application by pressing "F5" on Visual Studio, or double-click the executable, the application icon at bottom of the screen shows my icon correctly.

However, after I build a msi using Visual Studio setup, and run this msi and install the application, when it runs, the application icon at the bottom of the screen no longer shows my icon - it shows the Visual Studio default icon.

What went wrong?

Thanks!

解决方案

Have you included your icon in the project?

I guess not. You have to add it "manually". Check here how its done: http://social.msdn.microsoft.com/Forums/eu/winformssetup/thread/e0ac908d-8c33-4d99-88dd-d8d8be77d198

Or right click on your project name and choose Properites. Then in applicaiton tab look for Resources groupBox and Icon and manifest radioButton. Look for your icon and set it.


这篇关于Windows 7任务栏图标无法正确显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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