Search code examples
c#visual-studio-2010notifyicon

Change notifyIcon1 from resources


this code recall a icon from external file:

notifyIcon1.Icon = new Icon("notifier.ico");

if possible change the icon from resources file?

notifyIcon1.Icon = new Icon(Properties.Resources.ResourceManager.icon2);

Solution

  • Properties.Resources.icon2 is already an Icon.