title: Embedding a File Explorer instance in a Windows Forms application form
body: <p>My (C#, .NET 3.5) application generates files and, in addition to raising events that can be caught and reacted to, I want to display the target folder to the user in a form. The file-list is being shown within the same form as other information.</p>
  
  <p>I'm using an instance of the <code>WebBrowser</code> control (<code>System.Windows.Forms.WebBrowser</code>), then navigating to the folder. This shows some default view of the explorer window, with the file summary panel on the left and the files in the 'Tiles' (large icon and text) view.</p>
  
  <p>For example,</p>
  
  <pre><code>wb.Navigate(@"c:\path\to\folder\");
  </code></pre>
  
  <p>I'd like to suppress the panel and to view the file list in the Details view. The user can get to this via a right-click, context menu, but I'd like it to come up automatically.</p>
  
  <p>I'd rather not have to build my own TreeView, DataGridView or whatever; the WebBrowser control does all the updating and re-sorting and whatnot 'for free'.</p>
  
  <p>Is there a better way? A different control to use or some additional arguments to pass to the control?</p>
  
  <p>And if I could trap events (for example, files being selected/renamed/double-clicked, etc.) then all the better!</p>