Gidi wrote:
Hi,
I've created a project, and after compiling the *.exe file has
created, i want to change the icon of that file, i changed the
App.ico file to my Icon, but still i can't change the icon, is there
another way?
Just to explain why you are having these problems. The application
icon - the one that Windows Explorer shows, or the one that you see in
the application list when you press Alt-Tab - is an unmanaged resource,
so you have to add it as such. The C# compiler has a switch /win32icon
to allow you to specify the icon to use, and there is a VS way to do
this too, as Bry mentions. The Form icon is a *managed* resource and it
is stored in a totally different part of the file (anyway, it is a
compiled resource), so the OS does not know about it.
Richard
--
http://www.grimes.demon.co.uk/workshops/fusionWS.htm http://www.grimes.demon.co.uk/workshops/securityWS.htm