vs2010不会自动将字符串添加到winforms中的.resx文件中 [英] vs2010 is not adding strings automatically to .resx file in winforms

查看:90
本文介绍了vs2010不会自动将字符串添加到winforms中的.resx文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将本地化更改为true并将语言更改为hindi并更改了控件文本然后点击构建现在我应该获得一个资源文件,其中应包含控件名称和值(文本)但我得到的是一个资源文件,它只添加了图像对于按钮没有别的,请建议我如何做我应该手动添加它们如果是的话然后不知道在那里写控制名称的语法。

i changed localization to true and language to hindi and changed controls text then hit build now i supposed to get a resource file which should contain controls names and values (text) but what i am getting is a resource file which added just images for buttons nothing else , please suggest me how should i do that should i add them manually if yes then don't know the syntax to write control names there.

推荐答案

只需在.resx文件中添加字符串并为其赋值。

例如。



Just simply add the string in .resx file and assign it a value.
for example.


this.Text Form1
>>
this.Text Form1 >>


this.Name Form1
>>
this.Name Form1 >>


这篇关于vs2010不会自动将字符串添加到winforms中的.resx文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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