Coerce Windows to show a thumbnail for my custom file type.
Posted
by Jakob Ryden
on Stack Overflow
See other posts from Stack Overflow
or by Jakob Ryden
Published on 2010-04-23T00:16:43Z
Indexed on
2010/04/23
0:23 UTC
Read the original article
Hit count: 655
Hi, 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
© Stack Overflow or respective owner