executables icon

  • Thread starter Thread starter ECathell
  • Start date Start date
E

ECathell

Is there a way to change the executable Icon on the fly? I have finished my update application successfully, but now I would like to be able to assign a different program Icon to it depending on what application is responsible for running. I would like to do this without recompiling it for every application. Is there a way to do this in code?
 
Is there a way to change the executable Icon on the fly? I have finished my
update application successfully, but now I would like to be able to assign a
different program Icon to it depending on what application is responsible for
running. I would like to do this without recompiling it for every
application. Is there a way to do this in code?

Assuming you know all the icons that you might want to use, add them to your
project and set the build action to embedded resource. Later, your program
can pick whichever icon it wants to assign to its forms. How to do this is
described in the online documentation.

Assuming you don't know all the icons that you might want to use, I don't
know what to tell you.
 
Thanks for your response, however I wasn't talking about the internal forms
Icons, I was meaning the icon that is used to represent the program in
windows.
 
I found my answer, sortof...I knew there was a way to redo icons. It has to be done on a shortcut...not the actual executable.
 

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

Back
Top