How can I get the icon from the executable file only having an instance of it’s Process in C#

Icon ico = Icon.ExtractAssociatedIcon(theProcess.MainModule.FileName);

Leave a Comment