BAPSDude
BAPSDude

Reputation: 341

Allow text from different cultures in Textbox C#

I have an application in which username is both in English and Japanese(for Japanese users.)

I am retrieving username from database and want to allow both English and Japanese cultures' username in my text box that displays username.

How to do it?

Upvotes: 0

Views: 319

Answers (1)

Jageen
Jageen

Reputation: 6365

There is a property call ImeMode for text box which is by default "No control" which allow you to enter both English and Japanese
There is also other options like Hiragana,katagana,Alpha etc... enter image description here

And regarding question of comparing string there is no need to worry about it is work with Unicode so it will compare both English and Japanese text.
enter image description here

Upvotes: 2

Related Questions