title: System.Drawing.Icon path
body: <p>I made a WPF Application and I want to use a NotifyIcon, so I added a reference to System.Windows.Forms and to System.Drawing. I'm using the following code:</p>
  
  <pre class="lang-cs prettyprint-override"><code>System.Windows.Application.Current.MainWindow.Hide();
  
  NotifyIcon Tray = new NotifyIcon();
  Tray.Icon = new System.Drawing.Icon("Assets/Icons/icon.ico");
  Tray.Visible = true;
  Tray.MouseDoubleClick += (s, e) =&gt; 
  {
      System.Windows.Application.Current.MainWindow.Show();
      System.Windows.Application.Current.MainWindow.WindowState = WindowState.Normal;
  };
  </code></pre>
  
  <p>My problem is in the fourth line because the function expects a system path, but I want to add a path to an icon included in my project. </p>
  
  <p>How do I refer to a file in my Project with Windows Drawing Icons?</p>