-
August 4th, 2009, 04:12 PM
#1
Displaying thumnails in OpenFileDialog
Is there a way to make the OpenFileDialog display thumbnails when it initially opens instead of the list format. I know I can click on the view icon and change to thumbnail view but I would like the dialog to open in thumbnail view automatically?
Thanks in advance,
Hal
up·grade (up'gräd'),
to take out old bugs
and put in new ones.
-
August 10th, 2009, 11:36 AM
#2
Re: Displaying thumnails in OpenFileDialog
I don't know of any simple way to do this, but better programmers have tackled this problem and come up with some solutions that aren't too complicated.
Here is a pretty good one at CodeProject: http://www.codeproject.com/KB/dialog...gExtender.aspx
-
August 10th, 2009, 10:51 PM
#3
Re: Displaying thumnails in OpenFileDialog
Thanks for the reply. This works for Windows Forms applications but when I tried it with my WPF application I get the following build error:
WndProc(ref System.Windows.Forms.Message); no suitable method to override.
I included a using for System.Windows.Forms and added the reference.
Regards,
Hal
up·grade (up'gräd'),
to take out old bugs
and put in new ones.
-
August 11th, 2009, 11:51 AM
#4
Re: Displaying thumnails in OpenFileDialog
Ah, you are right. There would need to be some work done to handle the Win32 hook in WPF. I'm not sure exactly how that would be done, but here are some relevant links. Sorry I couldn't be of more help!
http://support.microsoft.com/kb/Q318804
http://social.msdn.microsoft.com/For...-cb7cdb27bd83/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|