Search code examples
vb.netwindows-vistaglobalizationinput-language

Urdu writing in text box in vb.net


I am using following code to enable my text box to write in Urdu but it is typing in English as usual. Please advise what do I need to make my textobx, take urdu as input

Thanks

Dim x As New System.Globalization.CultureInfo("ur-PK")
    InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(x)

Solution

  • After I added Urdu as a language option in Windows your code snippet started to work.