Changing the Icon of the *.exe file

G

Guest

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?

Thanks,
Gidi.
 
G

Guest

Gidi,

Might not be what your looking for but based on your time line you outline
in your message. I think you just need to recompile. Especially if the
app.ico file is an embedded resources.

Michael
 
B

Bry

I'm using vs .net 2005, so ymmv if you are using 2003.

* Click on the Project menu
* Select "<application name> properties"
* Change the icon
 
R

Richard Grimes

Gidi said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top