Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customer application icon is not showing in taskbar - why?

Tags:

c#

icons

wpf

Situation: Implementing a WPF application with VS 2012 and added a custom icon to the main window with tag Icon="images\myIcon.gif">.

When starting the WPF application out of VS 2012 with CTRL + F5 the icon will be shown in the taskbar and in the left top corner of the main window.

Problem: I published my application with VS 2012's publishing wizard (One Click installing routine) and installed the application on my computer. When starting the installed application the left top icon ist still shown in the main window, but the taskbar icon not. Instead a windows default icon is shown.

Question: Does someone know what the problem is or what I have been missing?

like image 456
John Threepwood Avatar asked Jan 20 '14 08:01

John Threepwood


People also ask

How do I get an app to show up on my taskbar?

From the Start menu or apps list, press and hold (or right-click) an app, then, if available, select Pin to taskbar . From the Start menu or apps list, press and hold (or right-click) an app, then select More > Pin to taskbar .

How do I fix icons not displaying?

Simple Reasons for Icons Not Showing You can do so by right-clicking on the desktop, selecting View and verify Show desktop icons has a check beside it. If it's just the default (system) icons you seek, right-click the desktop and choose Personalize. Go into Themes and select Desktop icon settings.

How do I fix taskbar icons not working?

A quick first step when you have any taskbar issue in Windows is to restart the explorer.exe process. This controls the Windows shell, which includes the File Explorer app as well as the taskbar and Start menu. Restarting it can thus clear up any minor hiccups, such as your taskbar not working.


1 Answers

From Microsoft Docs:

Windows Presentation Foundation (WPF) standalone applications have two types of icons:

  • One assembly icon, which is specified by using the property in the application's project build file. This icon is used as the desktop icon for an assembly.

  • One icon per window that is specified by setting Icon. For each window, this icon is used in its title bar, its task bar button, and in its ALT-TAB application selection list entry.

If you want to display an icon in the taskbar, you need to set the assembly/application icon:

  • Open the properties of your project deployed by ClickOnce
  • Application --> Resources
  • Select Icon and manifest and browse for the icon you desire
like image 66
Herdo Avatar answered Oct 08 '22 23:10

Herdo