title: Why is WPF NotifyIcon Icon property setter throwing an exception?
body: <p>I'm having trouble with a NotifyIcon in WPF, the second line is throwing an exception. I can't seem to find a way to use the icon file I have in the resources, can anyone help.</p>
  
  <pre><code>notifyI = new NotifyIcon();
  notifyI.Icon = new Icon("Power.ico");
  notifyI.Text = "Shutdown Timer";
  notifyI.Visible = true;
  notifyI.MouseDoubleClick += new
  System.Windows.Forms.MouseEventHandler(notifyI_MouseDoubleClick);
  </code></pre>