1

Hi how can I change the icon of a desktop shortcut via code? Im really puzzled. I have tried getting the icon of the shortcut with Icon iocn = Icon.ExtractAssociatedIcon(Assembly.GetExecutingAssembly().Location); but then I don't know how to replace the current icon with a new one...Please help

p0enkie
  • 665
  • 2
  • 11
  • 22
  • http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/ce3ba993-2578-48b5-acb4-5421af950b05 I used as reference and just tweaked it a bit...this worked fine for what I intended Thanx for everyones input – p0enkie Mar 22 '12 at 09:28

2 Answers2

1

Using ShellLink Class you can modify the shortcuts

Smack
  • 936
  • 1
  • 13
  • 31
0

You may need to recreate the shortcut from scratch. Look at this question for several different solutions.

Community
  • 1
  • 1
Matt
  • 7,100
  • 3
  • 28
  • 58