CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Feb 2001
    Location
    AZ
    Posts
    201

    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.

  2. #2
    Join Date
    Aug 2008
    Posts
    6

    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

  3. #3
    Join Date
    Feb 2001
    Location
    AZ
    Posts
    201

    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.

  4. #4
    Join Date
    Aug 2008
    Posts
    6

    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
  •  





Click Here to Expand Forum to Full Width

Featured