how can i change Exe icon programmatically.

F

faraz

I have set the exe icon from Project Properties->Application->ico. now
i always have the same icon on the exe. how can i change the icon of
exe programmatically?
 
H

Herfried K. Wagner [MVP]

faraz said:
I have set the exe icon from Project Properties->Application->ico. now
i always have the same icon on the exe. how can i change the icon of
exe programmatically?

P/invoke + 'UpdateResource'. However, this may break signatures if the
executable is signed.
 

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

Top