Click here to Skip to main content
11,415,000 members (62,752 online)
Click here to Skip to main content

Tagged as

Cause Windows.Forms.SaveFileDialog to display in Details mode

, 14 Mar 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
I have several applications that open a SaveFileDialog, but it always comes up in "List" mode and I had not found a way of configuring the dialog to display in "Details" mode. This is a kludgy work-around, but it seems to work OK. After Declaring the dialog in your code and just prior to calling...
I have several applications that open a SaveFileDialog, but it always comes up in "List" mode and I had not found a way of configuring the dialog to display in "Details" mode. This is a kludgy work-around, but it seems to work OK. After Declaring the dialog in your code and just prior to calling the dlg.ShowDialog() method I include the line:
SendKeys.Send("{tab}{tab}{tab}{tab}{tab}{right}{right}{down}{up}{enter}")
That seems to work to bring the dialog up in the "Details" mode.
I use it on XP, have not tried it on Vista or W7.

Enjoy! - hground

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

hground
Software Developer (Senior)
United States United States
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150427.4 | Last Updated 14 Mar 2010
Article Copyright 2010 by hground
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid