在Windows应用程序中将文本框的文本转换为印地文 [英] Convert the text of Textbox to hindi in windows application

查看:89
本文介绍了在Windows应用程序中将文本框的文本转换为印地文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Windows应用程序,其中我希望在用户输入文本时将文本框的文本更改为印地文语言,例如,如果用户在文本框中输入自己的名字,则其名称应自动显示在印地文中.
记住它是一个脱机应用程序.

在此先感谢!!!

I am developing a windows application in which I want to change the text of textbox to hindi language as the user enters the text for eg if user enters his name in textbox, automatically his name should be displayed in hindi in the label.
Remember its a Offline Application.

Thanks in Advance !!!

推荐答案

您可以使用任何音译器库,例如:Codeplex.com上的Uniocode Sharp

http://unidecode.codeplex.com/ [ ^ ]
也可以查看此内容:
You can use any transliterator library, for eg: Uniocode Sharp at Codeplex.com

http://unidecode.codeplex.com/[^]
See this too:
string input = "0928;0940;0932;092E;";
Regex rx = new Regex(@"([0-9A-Fa-f]{4});");
string output = rx.Replace(input, match => ((char)Int32.Parse(match.Groups[1].Value, NumberStyles.HexNumber)).ToString());

Output: नीलम 


这篇关于在Windows应用程序中将文本框的文本转换为印地文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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