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.

解决方案 »

  1.   

    你的工程的资源找不到了,你使用的是2003?
    如果是2003,那么你只能再为你的toolStripButton5重新设置一个icon了。
    如果是2005,那么你可以在网上查查如果刷新你的工程资源。
      

  2.   

    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.
      

  3.   

    YJTW.Frm主窗体.resources 相关的文件没有和程序放在一起的原因吧。
      

  4.   

    查看一下resorces文件的内容,看看执行文件是否能够找到相关的指定图片文件。
      

  5.   

    看一下MSDN的resource,里面有好几种方法。我推荐的是【将资源文件嵌入输出文件中】的方法。
      

  6.   

    比如:csc /resource:YJTW.Frm主窗体.resources Frm主窗体.cs
    其他还有几种办法,MSDN有详尽介绍。
      

  7.   

    这个和#3楼说的方法差不多。
    如果有几百个这样的控件有问题,可能修改的成本就高了。
    恭喜你还好只有一个控件有问题(笑)。
    我建议还是搞清楚resource文件的本身是怎么一回事,
    你做的程序的灵活性会提高很多的。
      

  8.   

    是不是没找到图片............而报错哟,或者你直接在解决方案里删除过resources 文件夹里的图片或者其他的东西点击 项目-----属性------资源------看里面有没有你绑定的图片 ,最好把这个图片(或其他文件)删除 重新添加resources 这个文件夹 是装图片,音频 等一些文件的............重新生成解决方案------报错-------VS2008 下面不是有个错误列表吗------双击这个错误会跳到报错的地方