1

I want to modify the icon of an external application programmatically. I see this article but have not resolved, can anyone help me?

Community
  • 1
  • 1
yaruwang
  • 11
  • 1
  • 2

3 Answers3

1

WinApi provides function UpdateResource which allows you to change any resource of in PE file.

This problem was already solved on stackoverflow.

Community
  • 1
  • 1
Vyktor
  • 20,559
  • 6
  • 64
  • 96
0

Project properties -> Application -> Icon and manifest, assuming Visual Studio 10

Craig Graham
  • 1,161
  • 11
  • 35
  • thanks,but it is not want i want,I'm trying to change the icon of external executable programmatically. I've googled and found much information about this problem using C++. Basically, I need to use BeginUpdateResource, UpdateResource and EndUpdateResource. The problem is - I don't know what to pass to UpdateResource in C#. – yaruwang Oct 05 '12 at 11:18
-1

You can try with Icon section defined in the end of screen

enter image description here

Aghilas Yakoub
  • 28,516
  • 5
  • 46
  • 51