Windows 7 任务栏图标未显示在 .net 3.5 应用程序中

发布于 2024-09-08 22:24:28 字数 134 浏览 2 评论 0原文

我的应用程序位于 .net 3.5 中,当我运行该应用程序时,它的图标在 Windows 7 任务栏上显示正常。但是,当我将应用程序固定到任务栏时,图标消失并被默认的窗口“无图标”图像替换。我尝试为我的 .ico 制作 48 位图像,但这并没有解决问题。

My application is in .net 3.5 its icon appears fine on the Windows 7 taskbar when I am running the application. But, when I pin my application to the taskbar, the icon dispappears and is replaced with the default windows "no icon" image. I tried making a 48 bit image for my .ico but that didn't solve the problem.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

满天都是小星星 2024-09-15 22:24:29

当应用程序未固定时您看到的图标是窗口的图标。当它被固定时,将使用应用程序的图标。转到项目的属性并在“应用程序”选项卡中设置一个图标(这当然应该与主窗口使用的图标相同,以避免任何混淆)。

The icon you're seeing when the application is not pinned is the window's icon. When it's pinned, the application's icon is used instead. Go to the project's properties and set an icon in the Application tab (this should of course be the same icon used for the main window to avoid any confusion).

绝情姑娘 2024-09-15 22:24:29

我刚刚注意到:
如果您固定从 Visual Studio 中启动的应用程序,则始终使用“空”图标,因为链接设置为“AppName.vshost.exe”可执行文件。

I just noticed:
If you pin an app that is started from within visual studio the "empty" icon is used always, because the link is set to "AppName.vshost.exe" executable.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文