在C#项目中使用.res文件 [英] use .res file in C# project
问题描述
你好
我有资源文件(* .res),其中包含数字的字符串信息.我想在我的C#项目中使用此.res文件.我已经将.res文件嵌入了我的C#项目中,但是现在我不确定如何在程序中使用它.
我想要做某事:
如果我在一个文本框中插入数字2000,然后单击一个按钮,则另一个文本框应显示从.res文件表中选择的字符串值,即UNKNOWN
有没有办法在C#中做到这一点.我知道在VB6中可以做到这一点,但我从来没有在C#中做到过.
如果有人可以帮助我解决这个问题,那将是非常不错的事情
-
AJ
Hello
I am having resource file (*.res) which contains string information of the numeric numbers. I want to use this .res file in my C# project. I have embedded the .res file with my C# project but now I am not sure how I can use it in my program.
I want something to do like:
If I insert a number say 2000 in one text box and click on a button then the other text box should show it''s string value picked from the .res file''s table i.e. UNKNOWN
Is there a way to do this in C#. I know a way to do it in VB6 but I have never done it in C#.
It will be really great if anyone can help me solve this problem
--
AJ
推荐答案
您在这里
C#中的资源 [ .NET-使用资源文件进行本地化 [
Here you go
Resources in C#[^]
.NET - Localization using Resource file[^]
这篇关于在C#项目中使用.res文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!