本文介绍了使用MDI格式添加图像按钮问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在按钮中添加图片

-----------------------



ADD IMAGE IN BUTTON
-----------------------

this.btnupdate.Image = global::InternationalLaundry.Properties.Resources.btn_add1;
        this.btnupdate.Location = new System.Drawing.Point(149, 21);
        this.btnupdate.Name = "btnupdate";
        this.btnupdate.Size = new System.Drawing.Size(75, 23);
        this.btnupdate.TabIndex = 1;
        this.btnupdate.UseVisualStyleBackColor = true;
        this.btnupdate.Click += new System.EventHandler(this.btnupdate_Click);
        //





错误

---------

缺少明显的资源缺失



无法找到适合指定文化或中性文化的资源。确保在编译时将InternationalLaundry.Properties.Resources.resources正确嵌入或链接到程序集InternationalLaundry中,或者所有所需的附属程序集都是可加载和完全签名的。



ERROR
---------
MISSING MANIFEST RESOURCEEXCEPTION WAS UNHANDLED

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "InternationalLaundry.Properties.Resources.resources" was correctly embedded or linked into assembly "InternationalLaundry" at compile time, or that all the satellite assemblies required are loadable and fully signed.

推荐答案


Quote:

如果您使用通过使用具有不适当文件名的.resources文件创建的附属程序集中存在的本地化资源,则会出现此问题。如果手动创建附属程序集,通常会出现此问题。

This problem occurs if you use a localized resource that exists in a satellite assembly that you created by using a .resources file that has an inappropriate file name. This problem typically occurs if you manually create a satellite assembly.



如何解决?阅读: []


这篇关于使用MDI格式添加图像按钮问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 08:41