tags:

views:

245

answers:

1

Hello, imagine you are using webBrowser control to browse local file system, so it behaves like Explorer

WebBrowser wb = new WebBrowser();
wb.Navigate(@"c:\");

Now it displays contents of c:\ directory. But I'd like it to programatically set the view mode to "Details" view and not to display whatever mode the logged-in user currently uses.

Thanks

A: 

You might want to take a look at the documentation for the IShellBrowser interface:

http://msdn.microsoft.com/en-us/library/bb775123(VS.85).aspx

You are probably going to have to find the IServiceProvider interface implementation on the web browser to get to this interface, and all of it is more than likely going to have to be done through COM interop.

casperOne
I was able to find that interface, but I can't find any method either in MSDN documentation or on the internet that would change the view mode. I'll probably have to implement this on my own
Axarydax