Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I build and asp.net web site and now i need to determine the current input language in my textBoxes. Can someone give code so i can determine it?

Thanks
Posted

Hi,
You can get by doing:
InputLanguage myCurrentLanguage = InputLanguage.CurrentInputLanguage;
 
Share this answer
 
Comments
thekoko89 7-Jun-13 9:51am    
This was the right thing that i ask just after that row of code i type:
lblmsg.Text = myCurrentLanguage.Culture.Name;
and i got the current input language that is set my keyboard on it.
Thanks
You can get Browser's language in CultureInfo. I dont think you can get this based on the text entered by user.
 
Share this answer
 
Don't expect code from others.Try it yourself and show us where you get stuck.Here's some helpful things for you..
http://msdn.microsoft.com/en-us/library/system.windows.forms.inputlanguage.fromculture%28v=vs.71%29.aspx[^]
Detect a written text's language[^]
 
Share this answer
 

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