Click here to Skip to main content
15,886,791 members
Articles / Programming Languages / C# 4.0

Extract icons from EXE or DLL files

Rate me:
Please Sign up or sign in to vote.
4.91/5 (46 votes)
10 Nov 2014BSD3 min read 203.2K   13.6K   149  
Extract all the variations of an icon, including the ones ExtractIconEx() can't extract.
using System;
using System.Windows.Forms;

namespace IconExtractorApp
{
    static class Program
    {
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The BSD License


Written By
Software Developer
Japan Japan
In 1985, I got my first computer Casio MX-10, the cheapest one of MSX home computers. Then I began programming in BASIC and assembly language, and have experienced over ten languages from that time on.
Now, my primary languages are C++ and C#. Working for a small company in my home town in a rural area of Japan.


Comments and Discussions