Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 468349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:40:22+00:00 2026-05-12T23:40:22+00:00

Windows explorer has the ability to show thumbnails of files. These thumbnails are provided

  • 0

Windows explorer has the ability to show thumbnails of files. These thumbnails are provided by core and third-party shell extensions.

I know how to extend the shell to provide thumbnails to Windows.

What I want to do is retrieve the thumbnail image from any file on the system via the shell using C#. Is this possible?

Essentially, I’m writing a custom file browser and I want to show thumbnails, and can’t possibly parse every file on the planet to make my own thumbnails.

Clarification:
Many answers seem to be centered around web page thumbnails, or scaling an image. But that’s not at all what I’m looking for. What I want is to ask Windows for the thumbnail representation of these file types: .DOC, .PDF, .3DM, .DWG… and mabye about a dozen more. I don’t want to parse, render, and make thumbnails myself, because Windows already knows how.

The code I posted as an answer actually works… maybe it can be simplified and cleaned up a bit.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:40:22+00:00Added an answer on May 12, 2026 at 11:40 pm

    Ran across this today — it’s a few months old, but it got the job done for me (on Win7, extracting thumbnails on MPEG-4 files):

    • Source : https://github.com/dbarros/WindowsAPICodePack
    • Nuget : https://www.nuget.org/packages/WindowsAPICodePack-Shell

    Code:

    ShellFile shellFile = ShellFile.FromFilePath(pathToYourFile);
    Bitmap shellThumb = shellFile.Thumbnail.ExtraLargeBitmap;
    

    Hope it helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i use a treeview to display files and folders like Windows Explorer. it has
If you look at files in Windows Explorer, a DOC file has it's icon,
I'm currently writing a Windows Explorer Shell Extension. Everything is ok so far but
Why does Internet Explorer has Mozilla in UserAgent? In Firefox it's stating: Mozilla/5.0 (Windows
In Windows 7 (and I think Vista) the Explorer has a preview pane that
I am trying to implement a classic Windows Explorer kind of Application, CpliterWnd has
I know how to move a directory locally in Windows Explorer, so that it
In Windows Explorer in Windows 7, items in ListView has flexible margin. So all
In Windows Vista/7's windows explorer, the Icon Size selector has got a track bar
I'm implementing a Windows Explorer Shell Extension for a networked file system on Windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.