Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Cause Windows.Forms.SaveFileDialog to display in Details mode

0.00/5 (No votes)
14 Mar 2010 1  
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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here