how can i change Exe icon programmatically.

  • Thread starter Thread starter faraz
  • Start date Start date
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?
 
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.
 
Back
Top