14

I want to use the windows OpenFileDialog class in C# to browse files for my application. I would then like the files to show up with previews in Windows' "thumbnails" view.

Is there a simple way to make this happen? I'm thinking there should be a way to encode the files so that Windows simply reads and displays the thumbnail information, even though it's an unsupported file type?

I know Windows Vista has a different interface (IThumbnailProvider as opposed to IExtractImage) than Windows XP, but I need it to work across platforms.

Thanks! / Jakob

MPelletier
  • 16,256
  • 15
  • 86
  • 137
Jakob Ryden
  • 317
  • 2
  • 13

1 Answers1

8

You have to write a Shell Extension Handler Thumbnail Image Extractor. This is unmanaged c++ code that extracts the image from your custom filetype to display within explorer shell. You can find more about Shell Extension Handlers at the following link:

Creating Shell Extension Handlers

Wade Tandy
  • 4,026
  • 3
  • 23
  • 31