who to write Urdu in text box in vb.net wpf form I try this below code but bellow underline occur what I am doing wrong? " reference to non shared members InputLanguageManager.CurrentInputLanguage"
Private Sub urdu_GotFocus(sender As Object, e As TextChangedEventArgs) Handles urdu.GotFocus
InputLanguageManager.CurrentInputLanguage = InputLanguageManager.InstalledInputLanguages(2)
Dim variable As String = urdu.Text
End Sub
Assuming that Urdu is already installed on your system. You can try like this:
Public Sub urdu_GotFocus(ByVal InputLang As InputLanguage)
If InputLanguage.InstalledInputLanguages.IndexOf(InputLang) = -1 Then
Throw New ArgumentOutOfRangeException()
End If
InputLanguage.CurrentInputLanguage = InputLang
End Sub
Note that InputLanguage is present in System.Windows.Forms
namespace and in System.Windows.Forms.dll
assembly.
You can also refer MSDN blog for Changing the input language in a textbox at runtime
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.