I added a minimize to tray function, to do that i need to assign an icon for the tray, the problem is the only way i can do that is this

Icon ico = new Icon( "calculator.ico");
            appIcon.Icon = ico;

witch means that calculator.ico should be in the same folder as the program. Now i have added calculator.ico to the program resources but i dont know to assign it to the variable ico, could someone help me plz?

To get your resources in your program do something like this:

Icon ico = new Icon(Properties.Resources.iconname, new Size(32,32));

Perhaps this should work also, did not test it...

Icon ico = Properties.Resources.iconname;

iconname is the name the icon has in the resourcefile.