Click here to Skip to main content
15,888,010 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
i am working on wpf application and getting current input language using InputLanguageManager.

and it is working fine but now when i am setting this inside another thread (background worker thread) i am getting exception

"Object reference not set to an instance of an object."

and i am not getting how to use dispatcher for this

please help me to get this value using dispatcher.

TIA

What I have tried:

i tried below code for this
string lang = "Current " + InputLanguageManager.Current.CurrentInputLanguage.ToString();

how to use dispatcher for this code.
thanks
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900