使用MDI格式添加图像按钮问题 [英] ADD IMAGE BUTTON PROBLEM USING MDI FORM

查看:65
本文介绍了使用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.

推荐答案

我建​​议你不要使用MDI表格。

最好为应用程序使用SDI表单。

好​​吧,就我看到你的代码而言我没有发现任何错误。

请参阅按钮图像属性。
I suggest you not to use MDI form.
Its better to use SDI form for the application instead.
Well, as far as I see your code I don''t find any error.
See the button image property.


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.



如何解决?阅读:当您尝试访问本地化资源时发生System.Resources.MissingManifestResourceException异常 [ ^ ]


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆