Windows窗体中的资源问题 [英] Resources Issue in Windows Forms

查看:77
本文介绍了Windows窗体中的资源问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

是否可以将所有资源文件都放在一个文件夹"AllResources"中的某个位置,如果我有30个以上的项目,并且每个项目至少有5种形式.

同样,每种形式都只能访问该文件夹中的资源文件.

并且无论何时以任何形式修改任何资源文件,都会在该文件夹中自动对其进行修改.

任何帮助将不胜感激.

谢谢.

Hello,

Is there a possibility to keep all resource files at one location say inside folder "AllResources" , In case I have more than 30 projects and each with 5 forms at least.

Also each form should be able to access resource files from that folder only.

And whenever modifying any resource file of any form, It get modified inside that folder automatically.

Any kind of help will be appreciated.

Thanks.

推荐答案

向您的项目中添加一个新的资源文件,创建图像,并将每个图像的Copy To Output Directory属性设置为Copy If Newer. />
这样,如果您在第一次运行该应用程序后更改任何图像,则更改后的图像将保留.
Add a new resource file to your project, create your images, and for each one, set the Copy To Output Directory property to Copy If Newer.

That way, if you change any of your images after running the application the first time, your changed images will remain.


这篇关于Windows窗体中的资源问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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