I know this topic is being discussed here and on other blogs, but none of the methods could help me.
I want to enter the Malayalam language in the text box. I have done it so far. I installed the font "AnjaliOldLipi". I can print Malayalam in Notepad. But I can not do the same in a Winform application. In the text box, it is displayed as English.
I tried the following code with no result.
private void richTextBox_test_Leave(object sender, EventArgs e) { System.Globalization.CultureInfo TypeOfLanguage = new System.Globalization.CultureInfo("en-us"); InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(TypeOfLanguage); } private void richTextBox_test_Enter(object sender, EventArgs e) { MessageBox.Show("textbox ebntereed"); System.Globalization.CultureInfo TypeOfLanguage = new System.Globalization.CultureInfo("ms-MY"); InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(TypeOfLanguage); richTextBox_test.Font = new Font("AnjaliOldLipi", 12); }
Then I tried the following code. Now the keyboard changes by default (I see it on the taskbar) when I enter the text box. However, when typing, the text appears in English. I need to press "Ctrl + Shift" to write to "malayalam". I donβt know why, but I need to write in Malayalam without pressing any keyboard buttons.
source share