Click here to Skip to main content
12,759,096 members (33,220 online)
Rate this:
Please Sign up or sign in to vote.
0 down vote favorite

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

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 10-Jan-13 3:50am
Updated 10-Jan-13 5:25am
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?

Elgahed 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? :-)

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

What makes you think the keyboard layout changes on a per app basis ?

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100