Stock icon

Posted on 2006-05-28
Last Modified: 2010-04-23
Can someone please give me some code for putting the icon that is associated with an unknown file extension into an imagelist?

Many thanks.

I have looked everywhere for it.
Question by:broadbent
    LVL 85

    Expert Comment

    by:Mike Tomlinson
    The project here will show you how to do everything and anything you ever wanted to know about how to make a "windows explorer" type interface...including how to extract default icons (drives, folders, etc.) and icons associated with a given extension.
    LVL 4

    Author Comment

    I assume that shell.dll (index = 0) contains this icon?
    LVL 96

    Accepted Solution

    You are correct.  It is at %SystemRoot%\system32\SHELL32.dll for Windows XP.


    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    26 Experts available now in Live!

    Get 1:1 Help Now