This is one of those pieces of code that you spend ages trying to find/figure out but once you do get it, it is annoyingly simple. I recently needed to get the Icon that was being used as the application so that it could be used within the application consistently, this is the code that I used in order to achieve this.

Icon.ExtractAssociatedIcon(Application.ExecutablePath)

 

Getting an applications Icon
Tagged on:     

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.