Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
0 down vote favorite


i am using this code to get the current keyboard layout name for my app .

C#
string Langu = InputLanguage.CurrentInputLanguage.LayoutName;


its working fine ....

but i want something like that to get the current Keyboard layout name for current active window ...

so any help with that ?

thanks everybody :)
Posted
Updated 10-Jan-13 4:25am
v2
Comments
Sergey Alexandrovich Kryukov 10-Jan-13 9:57am    
Why? why?!

I'll tell you what... If some application tried to enforce some keyboard layout for me, even inside this application only, I would never come close to the production it this company ever again. Maybe very, very special purpose. What?

And by the way, I would not advise you to ignore the question about the ultimate purpose. Who will volunteer to waste time for something which might not make sense?

—SA
Ali Al-Masry 10-Jan-13 10:03am    
i am just increase my skills :)
Sergey Alexandrovich Kryukov 10-Jan-13 10:06am    
That can justify things. But there are millions of simple problems waiting for your to solved them, but practically very useful. Do you see it? :-)
—SA

1 solution

What makes you think the keyboard layout changes on a per app basis ?
 
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