在vb.net文本框中编写乌尔都语 [英] Writing Urdu in vb.net text boxes

查看:86
本文介绍了在vb.net文本框中编写乌尔都语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我创建了一个带有文本框的winform。形式的本地化是真的,语言是乌尔都语。我想在文本框中输入urdu语言。 RightToLeft也已经确定。但是当我键入时,文本从右向左流动,但它是英文的。

我还设置了文本框的字体,其中包含从net(urdu字体)下载的内容,但它也不起作用。

请帮忙。



谢谢

解决方案

乌尔都语很受欢迎默认情况下,所有现代都支持。如果您可以在任何可用的Windows程序中键入Urdu,则可以在.NET应用程序中键入,甚至 RightToLeft 未设置。 它与本地化无关。您可以在任何系统上键入Urdu。 (我不知道什么是本地化它是真的,你不需要它。)本地化是完全不同的。



但你能吗?你是怎么告诉操作系统你把键盘换成乌尔都语的?毕竟,在您的控件中粘贴一些乌尔都语文本;并且你会看到它立即起作用。



首先,你需要在控制面板中添加一种语言,区域和语言,键盘和语言 。在高级键设置中选择键盘开关键。但这是操作系统的每个用户都应该知道的,而不仅仅是软件开发人员。 :-)



当你使用 System.Windows.Forms 时(总是在你的问题中标记它,使用改进问题!),您还可以使用 System.Windows.Forms.InputLanguage.CurrentInputLanguage http://msdn.microsoft.com/en-us/library/system.windows.forms.inputlanguage.currentinputlanguage.aspx [ ^ ]。



您不必这样做。我建议仅依靠操作系统。



顺便说一下,从右到左,从左到右对打字来说会很棘手。你可以自由地将英语和乌尔都语混合在一行,以及任何其他语言。方向将作为您的类型字符从Unicode代码点的不同子集跳跃。



请参阅:

http://unicode.org [ ^ ],

http://unicode.org/faq/utf_bom.html [ ^ ]。



-SA


我不知道它正确的时间来回答这个问题,但我有这两个解决方案。完整的键盘模块乌尔都语,印地语,普什图语,信德语和波斯语语言。

http://www.define.pk/index.php/articles/computer/programing/55-hindi -keyboard-module-for-visual-basic-net-and-c [ ^ ]

http://www.define.pk/ index.php / articles / computer / programing / 54-farsi-persian-keyboard-module-for-visual-basic-net-and-c [ ^ ]

http://www.define.pk/index.php/articles/computer/programing/53-pashto-keyboard -module-for-visual-basic-net-and-c [ ^ ]



HTTP:// WWW。 define.pk/index.php/articles/computer/programing/52-sindhi-keyboard-module-for-visual-basic-net-and-c [ ^ ]

http://www.define.pk/index.php/articles/computer/programing/26-urdu-keyboard-module-fo r-visual-basic-net-and-c [ ^ ]



Urdu RichTextBox控制

http://www.define.pk/index.php/articles/computer/programing/56-urdu-richtextbox-control-for-visual-basic-net-c [< a href =http://www.define.pk/index.php/articles/computer/programing/56-urdu-richtextbox-control-for-visual-basic-net-ctarget =_ blanktitle =新窗口> ^ ]


现在您可以在VB.NET / ASP.NET / C#/ HTML等文本框中键入/编写Urdu [已删除垃圾邮件链接]

Hi,
I have created a winform with a text box on. The localization of form is True and the language is Urdu. I want to type urdu language in the text box. The RightToLeft has also been set. But when I type, text flows from right to left but it is in english.
I also set the font of the text box with something downloaded from net (urdu font) but it did not work too.
Please help.

Thanks

解决方案

Urdu is very popular and is supported by all modern by default. If you can type in Urdu in any available Windows program, you can type in in you .NET application even RightToLeft is not set. And it has nothing to do with localization. You can type Urdu on any system. (I have no idea what is "localization it true", you don't need it.) Localization is something completely different.

But can you? How did you tell the OS that you switched your keyboard to Urdu? After all, paste some Urdu text in your control; and you will see it works immediately.

First of all, you need to add a language in the Control Panel, "Region and Language", "Keyboard and Languages". Chose a keyboard switch keys in "Advanced Key Settings". But this is something every user of the OS should know, not just a software developer. :-)

As you are using System.Windows.Forms (always tag it in your question, use "Improve question"!), you can also switch input languages using System.Windows.Forms.InputLanguage.CurrentInputLanguage, http://msdn.microsoft.com/en-us/library/system.windows.forms.inputlanguage.currentinputlanguage.aspx[^].

You don't have to do that. I would recommend to rely on the OS only.

By the way, right-to-left and left-to-right is going to be tricky for typing. You can freely mix, say, English and Urdu in one line, as well as any other languages. The direction will be jumping as your type characters from different subsets of Unicode code points.

Please see:
http://unicode.org[^],
http://unicode.org/faq/utf_bom.html[^].

—SA


I don't know wither its correct time for answer this solved question, but I have these two solutions. Complete keyboard module for Urdu, Hindi, Pashto, Sindhi, and Persian Languages.
http://www.define.pk/index.php/articles/computer/programing/55-hindi-keyboard-module-for-visual-basic-net-and-c[^]
http://www.define.pk/index.php/articles/computer/programing/54-farsi-persian-keyboard-module-for-visual-basic-net-and-c[^]
http://www.define.pk/index.php/articles/computer/programing/53-pashto-keyboard-module-for-visual-basic-net-and-c[^]

http://www.define.pk/index.php/articles/computer/programing/52-sindhi-keyboard-module-for-visual-basic-net-and-c[^]
http://www.define.pk/index.php/articles/computer/programing/26-urdu-keyboard-module-for-visual-basic-net-and-c[^]

Urdu RichTextBox Control
http://www.define.pk/index.php/articles/computer/programing/56-urdu-richtextbox-control-for-visual-basic-net-c[^]


Now you can type / write Urdu in text boxes in VB.NET / ASP.NET / C# / HTML etc. [removed spam links]


这篇关于在vb.net文本框中编写乌尔都语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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