0
Answer

Creating a new icon

Raprap

Raprap

19y
1.8k
1
I'm currently trying to make a icon appear at the taskbar when my program is minimised. therefore i need to assing my NotifyIcon() variable(m_notifyicon) with an icon. iv made a new icon/resource in vs.net called Icon1.ico but when i run the program i get a error saying " An exeption System.ArgumentExeption has occurred in programname.exe" This is how i assing the icon to the variable: m_notifyicon.Icon = new Icon (this.GetType(), "Icon1.ico"); Anyone know why i get this error? btw. I set the build action of the icon to Embedded Resource