3
votes

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.

2

2 Answers

4
votes

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).

1
votes

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.