"quest" <an********@microsoft.com> wrote in message
news:Ok**************@TK2MSFTNGP10.phx.gbl...
I created windows application using C#. I tried to replace the default
application icon by replacing the app.ico file in the project directory
but
the application still load the old icon. Can someone helps ? Thanks.
There are 3 different application icons used in different places:
1) The one on the window itself which must be set by property
2) The two! icons in the single App.ico file
The 2 icons in the App.ico file are 2 different sizes (32x32 & 16x16) used
at diferent times - the usual problem is that you only changed or provided
one size. The context menu in the icon editor allows you to switch or add
new sizes
Of course once you have sorted App.ico you will probably want to use it in
the window - I don't know why VS doesn't do this automatically for you
Another possible problem is that App.ico is purely a VS convenience so if
you are not using VS to build it will not work.