0

I have set the application icon under project properties Application tab, Resources, Icon and manifest to a custom icon. However it only changes the icon I see before I open the application. However when I open my application and look at the icon on my dock it is the same icon that I had when debugging with VS 2010.

Here is the image for the icon before I launch.

enter image description here

That is the icon that I want my docked icon to have also however it shows this one...

enter image description here

user541597
  • 4,049
  • 11
  • 58
  • 86

4 Answers4

2

You've probably only set the icon for the application, not the icon for your form. Each form can have its own icon.

aquinas
  • 22,639
  • 5
  • 54
  • 81
0

The shell display the icon of windows, not of executalbles, you need to select an icon for the window that is displayed.

In WPF the default icon for a window is the icon of the application, but it seem to only work in Release (See WPF Icon for all app windows ) without a debugger attached. You could still set the icon property of the window to what you want (Directly or from a resource, as you wish):

<Window
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  Icon="SomeIcon.ico">
</Window>

In winforms the designer is the simpler way to do it as it wil automaticaly put it in a resource file or let you select from an existing resource. If you want to to it by hand see Form.Icon documentation.

Community
  • 1
  • 1
Julien Roncaglia
  • 16,859
  • 3
  • 57
  • 74
0

Click on your form
Go to the properties window, go to Icon, select your ccon from the Resources

BlueCacti
  • 9,069
  • 3
  • 19
  • 24
0

You have to set the icon for each form.

AndroidLearner
  • 1,360
  • 7
  • 24
  • 40