How do I set the OpenFileDialog View menu for detailed view?

How do I set the OpenFileDialog view menu to "Detail view"?

0


source to share


3 answers


someone did it here with win32 api



DefaultViewMode:

This property lets you choose which view the OpenFileDialog should 
start in; by default, it opens using the "Details view". Here you 
can specify a different default view like Icons, List, Thumbnail, Detail, etc

      

+2


source


A quick Google search reveals this:

http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=3843682&SiteID=1

In particular, this implies:



Dim OpenFileDialog1 As New OpenFileDialog
SendKeys.Send("{tab}{tab}{tab}{tab}{tab}{right}{right}{down}{up}{enter}")
OpenFileDialog1.ShowDialog()

      

What is wrong. The next step is to find the handle to this dialog and send keystrokes directly to it. You also need to be aware that the solution may well break across different versions of windows.

This might be helpful depending on your situation (although I feel bad for posting this!)

0


source


Don't use Senkeys command. especially if your program is running on Windows Vista.

Using SendKeys is not recommended because you cannot be completely sure that the keystrokes will be sent to the correct location as they will be sent to the first window that appears that can accept them. There is probably little risk in this case, but sending SendKeys should generally be avoided.

0


source







All Articles