Hi i have some parser error when im trying to add icon to NotifyIcon. This one works fine:
System.Windows.Forms.NotifyIcon ni = new System.Windows.Forms.NotifyIcon();
ni.Icon = new System.Drawing.Icon("C:\\Users\\Daniel\\Documents\\Visual Studio
2012\\Projects\\Pies\\Pies\\main.ico");
But when I'm trying to do it in this way:
ni.Icon = new System.Drawing.Icon("main.ico");
It returns some strange ParserError. I added main.ico to the project. When im adding images in xaml I'm just using "/image/image.jpg" but this don't want to work in this way. Do yuo know why ?