Click here to Skip to main content
12,457,187 members (57,699 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

4.8K views
4 bookmarked
Posted

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

You may also be interested in...

Pro
Pro

Comments and Discussions

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