注意资源嵌入后访问方式:
System.Reflection.Assembly thisExe = System.Reflection.Assembly.GetExecutingAssembly();
string srcName = String.Format(System.Globalization.CultureInfo.CurrentCulture, "{0}.{1}",thisExe.GetName().Name,"App.ico");
Icon icoRun = new Icon( thisExe.GetManifestResourceStream(srcName) );
srcName = String.Format(System.Globalization.CultureInfo.CurrentCulture, "{0}.{1}",thisExe.GetName().Name,"servicestopped.ico");
Icon icoStop = new Icon( thisExe.GetManifestResourceStream(srcName) );