1
Answer

how to get current input language in wpf c#?

Sumit Kumawat

Sumit Kumawat

7y
264
1
Hi all,
 
i am creating a wpf application and getting current input language using below code
 
string lang = "Current " + InputLanguageManager.Current.CurrentInputLanguage.ToString();
 
and it is working fine but now when i am setting this inside the background worker thread i am getting
 
exception "Object reference not set to an instance of an object."
 
please tell me how to use dispatcher for getting current input language.
 
TIA
Answers (1)
0
Vinay Singh

Vinay Singh

NA 5.9k 126.1k 8y
check this
http://www.codeproject.com/Articles/14505/Dynamic-Themes-in-ASP-NET-C
http://www.asp.net/web-forms/overview/older-versions-getting-started/master-pages/specifying-the-master-page-programmatically-vb