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
Asked
Active
Viewed 2,778 times
1

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 Answers
0
You may need to recreate the shortcut from scratch. Look at this question for several different solutions.