title: Loading image from code using relative path in Windows Forms
body: <p>I have an <code>Image</code> in my application and I have a picture in my WinForms.</p>
  <pre><code>public static string Correct_Icons = @&quot;C:\Users\xyz\Documents\Visual Studio 2008\Projects\FileShareMgmt\FileShareMgmt\Resources\Correct.png&quot;;
  public static string warning_Icon = @&quot;C:\Users\xyz\Documents\Visual Studio 2008\Projects\FileShareMgmt\FileShareMgmt\Resources\Warning.png&quot;;
  
  
  cell.Value = Image.FromFile(&quot;Resources/warning_Icon);
  </code></pre>
  <p>But I just want to use a <em>relative path</em> and not the full path like above.</p>
  <p>For example something like this:</p>
  <pre><code>public static string Correct_Icons  = &quot;\Resources\Correct.png&quot;;
  </code></pre>
  <p>and cont.
  ..../
  not working. Any suggestions?</p>