且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Windows 7任务栏图标无法正确显示

更新时间:2022-10-18 08:13:41

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


我猜不是。您必须"手动"添加它。在这里查看它是如何完成的:  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.