Reputation: 434
I'm trying to create an easy money folder explorer in c# and, because I'm a noob, I don't have many ideas except using webbrowser, which works (if anyone has a better idea please let me know it).
THE QUESTION: how do I make it start in "view - medium icons" instead of "view - details" ?
Thanks a lot, Ionut
Upvotes: 1
Views: 3146
Reputation: 5836
The WebBrowser is very inflexible and slow for browsing files and folders. Consider using controls such as FileView developed spcifically for file and folder browsing.
Upvotes: 0
Reputation: 47978
you have to use P/Invoke to achieve this. In summary, WebBrowser
uses a windows control SysListView
to display the files. This control can be accessed and customized via P/Invoke.
For an example of how to do this, go here --> WebBrowser to view local files.
Upvotes: 0
Reputation: 13488
You might be taking the wrong approach here - have you considered using an ordinary ListView control? You'll have much more control over how your icons, columns, etc., are shown.
MSDN even has a tutorial showing how to use a ListView to mimic Explorer functionality.
Upvotes: 2