Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

changin Keyboard layout dynamically

5 views
Skip to first unread message

Aftab Alam

unread,
Sep 4, 2003, 3:46:40 AM9/4/03
to
Hello All
I want to change the keyboard layout dynaically, ie if a use focuses on my
application the keyboard layout gets set to Arabic and if on any other
application it should be english ??
How can I achieve this
Regards
Muhammad Aftab Alam

Cameron McColl

unread,
Sep 5, 2003, 5:09:41 PM9/5/03
to
Hi Muhammad,

It took me a while to figure that one out but it turns out it's really
easy. Here's an example that sets the keyboard for an app to the English
keyboard instead of the US keyboard:

'&h809 is the English - United Kingdom culture.
Dim x As New System.Globalization.CultureInfo(&H809)
InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(x)


You can see a full list of the culture info id's in help:
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003APR.1033/cpref/html/frlrfsystemglobali
zationcultureinfoclasstopic.htm
If that link doesn't work simply look up the CultureInfo Class.


Cameron McColl
Microsoft
--------------------
| From: "Aftab Alam" <aftab...@ascertia.com>
| Subject: changin Keyboard layout dynamically
| Date: Thu, 4 Sep 2003 12:46:40 +0500
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Message-ID: <eUm0Khrc...@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 203.81.201.108
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:134088
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb

0 new messages