在C#项目中使用.res文件

编程入门 行业动态 更新时间:2024-10-27 08:35:52
本文介绍了在C#项目中使用.res文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好 我有资源文件(* .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文件

本文发布于:2023-11-17 06:24:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1609141.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   项目   res

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!