title: Registering file type and custom document icon in .NET
body: <p>I have application that produces files. I would like to connect those files with application so that double-click on file launches my application.</p>
  
  <p>Everything works properly except for annoyance that icon looks same like icon of my application. I would like to have one icon for application and one icon for it's documents.</p>
  
  <p>DefaultIcon value in registry requires "app.exe,1" syntax where 1 is icon index. It seems that .NET resources are not Win32 resources.</p>
  
  <p>I tried following but without success:</p>
  
  <ol>
  <li>Selecting "Embedded Resource" as
  file's build action.</li>
  <li>Adding icon to resource file.</li>
  </ol>
  
  <p>Only thing that worked is having icon file separated from executable and pointing to it. However, that seems to me like surrender.</p>
  
  <p>Any ideas how to solve this?</p>