问题:添加图像窗口应用按钮 [英] Problem: Add image window appliction button

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

问题描述

  this  .btnloginsave.Image =  global  :: InternationalLaundry。 Properties.Resources.Submit_sample1_;  //   ERROR  
resources.ApplyResources( this .btnloginsave, btnloginsave);
this .btnloginsave.Name = btnloginsave ;
.btnloginsave.UseVisualStyleBackColor = true ;
this .btnloginsave.Click + = new System.EventHandler( this .btnloginsave_Click);





缺少清单资源异常未处理

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

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







我无法在项目中添加图片或图片。如果我通过这个项目在我的项目上面添加图片或图片。这是什么解决方案。?



已添加代码块[/编辑]

解决方案

停止重新发布!



你在这里得到了答案:使用MDI表格添加图像按钮问题 [ ^ ]。



我添加了对MS的引用支持网站 [ ^ ]。您是否阅读了链接文章及其相关资源 [ ^ ]?



另请阅读:

如何嵌入和访问资源使用Visual C# [ ^ ]

使用资源 [ ^ ]

嵌入资源(图像) [ ^ ]

this.btnloginsave.Image = global::InternationalLaundry.Properties.Resources.Submit_sample1_; // ERROR
       resources.ApplyResources(this.btnloginsave, "btnloginsave");
       this.btnloginsave.Name = "btnloginsave";
       this.btnloginsave.UseVisualStyleBackColor = true;
       this.btnloginsave.Click += new System.EventHandler(this.btnloginsave_Click);



missing manifest resource exception 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.




I cant add image or picture in my project. if i add image or picture in my project above message through this my project. what is solution this.?

[Edit]Code block added[/Edit]

解决方案

Stop repost!

You''ve got your answer here: ADD IMAGE BUTTON PROBLEM USING MDI FORM[^].

I''ve added a reference to MS support site[^]. Did you read linked article and its related resources[^]?

Also read it to:
How to embed and access resources by using Visual C#[^]
Using resources[^]
Embeded resource (images)[^]


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

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