this.toolStripButton5.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton5.Image")));
this.toolStripButton5.ImageTransparentColor = System.Drawing.Color.Magenta;
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "YJTW.Frm主窗体.resources" was correctly embedded or linked into assembly "YJTW" at compile time, or that all the satellite assemblies required are loadable and fully signed.
this.toolStripButton5.ImageTransparentColor = System.Drawing.Color.Magenta;
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "YJTW.Frm主窗体.resources" was correctly embedded or linked into assembly "YJTW" at compile time, or that all the satellite assemblies required are loadable and fully signed.
如果是2003,那么你只能再为你的toolStripButton5重新设置一个icon了。
如果是2005,那么你可以在网上查查如果刷新你的工程资源。
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "YJTW.Frm主窗体.resources" was correctly embedded or linked into assembly "YJTW" at compile time, or that all the satellite assemblies required are loadable and fully signed.
其他还有几种办法,MSDN有详尽介绍。
如果有几百个这样的控件有问题,可能修改的成本就高了。
恭喜你还好只有一个控件有问题(笑)。
我建议还是搞清楚resource文件的本身是怎么一回事,
你做的程序的灵活性会提高很多的。