title: Using listview as file/ folders explorer
body: <p>I'm new to using listview to display icons. I have a few questions remaining...</p>
  
  <p>I am currently using the following code as example. This code works fine, I have questions though</p>
  
  <ol>
  <li>How do I get rid of the path name and only keep the file / folder name?</li>
  <li>How do I also list folders alongside my files?</li>
  <li>How can I click open these icons?</li>
  </ol>
  
  <p>-</p>
  
  <pre><code>For Each File In System.IO.Directory.GetFiles("C:\")
      Dim icons As Icon = Icon.ExtractAssociatedIcon(File)
      ListView1.Items.Add(File.ToString, ImageList1.Images.Count - 1)
      ImageList1.Images.Add(icons)
      ListView1.Items.Add(File.ToString, ImageList1.Images.Count)
  Next
  </code></pre>