i am using the NotifyIcon from WindowsForms because in WPF we don't have such control, but the one from WinForms works fine, my problem is only setting an image as icon in the NotifyIcon when the image is in the Project.
I have the image in a folder called Images in my Project, the image file calls 'notification.ico'.
Here is my NotifyIcon:
System.Windows.Forms.NotifyIcon sysIcon = new System.Windows.Forms.NotifyIcon()
{
Icon = new System.Drawing.Icon(@"/Images/notification.ico"),
ContextMenu = menu,
Visible = true
};
What i am doing wrong here?
And can i create my NotifyIcon in XAML instead in Code Behind? If it's possible, how can i do it?
Thanks in advance!