Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

C# Get the target application icon then set it to Application.ExecutablePath

How can i get the target application ICON then delete the target application then copy the Application.ExecutablePath into the target directory then set the icon.

However if you dont under stand:
Code
public static void Main()
{
      string path = @"C:\Users\Haxor\Desktop\App.exe\";
      Icon.Get (path); ???????
      File.Delete (path);
      File.Copy(path, Name:StillTheSame App.exe;
      Icon.Set (path, SavedIconFromSecondLine);
}

Can you make that possible for me? 🤝
Icon.ExtractAssociatedIcon()
https://msdn.microsoft.com/en-us/library....110).aspx
(Aug 11, 2015 11:14 PM)tweety Wrote:  Icon.ExtractAssociatedIcon()

Thank you! Sir 🤗

Solved
(Aug 11, 2015 11:14 PM)tweety Wrote:  Icon.ExtractAssociatedIcon()
https://msdn.microsoft.com/en-us/library....110).aspx

Just FYI, this extracts the associated icon, i.e the icon associated with the file extension (or format?). Regardless, if you want to find the icon stored in the resources, which is probably what you're looking for, check out this library: https://github.com/dblock/resourcelib


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by JoseCmanXDIIMay 7, 2022 03:50 PM 10 270 May 7, 2022 03:50 PM
Last Post: JoseCmanXDII
[C#] by Predator2Jun 11, 2018 02:20 PM 0 125 Jun 11, 2018 02:20 PM
Last Post: Predator2
[.NET] by AdderallApr 1, 2015 08:41 AM 4 137 Apr 1, 2015 08:41 AM
Last Post: Adderall