Click here to Skip to main content
15,881,516 members
Articles / Programming Languages / Visual Basic
Tip/Trick

Cause Windows.Forms.SaveFileDialog to display in Details mode

Rate me:
Please Sign up or sign in to vote.
1.17/5 (3 votes)
14 Mar 2010CPOL 7.5K   4  
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)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --