title: Is there a way to get the windows default folder icon using C#?
body: <p>I have a <code>listView</code> with a list of documents. To each of them I assigned an icon, using the following method:</p>
  
  <pre><code>private void SetDocumentIcon(ListViewItem item, FileInfo file)
  {
      Icon iconForFile = Icon.ExtractAssociatedIcon(file.FullName);
  
      if (!documentsIconsImageList.Images.ContainsKey(file.Extension))
      {
          iconForFile = Icon.ExtractAssociatedIcon(file.FullName);
          documentsIconsImageList.Images.Add(file.Extension, iconForFile);
      }
  
      item.ImageKey = file.Extension;
  }
  </code></pre>
  
  <p>I tried to use this method for a folder, but it fails. The problem, as far as I understand, is that <code>Icon.ExtractAssociatedIcon</code> is for files and not folders. So how can I extract the icon of a folder?</p>
  
  <p>Thanks.</p>