PC Review


Reply
Thread Tools Rate Thread

changin Keyboard layout dynamically

 
 
Aftab Alam
Guest
Posts: n/a
 
      4th Sep 2003
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



 
Reply With Quote
 
 
 
 
Cameron McColl
Guest
Posts: n/a
 
      5th Sep 2003
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" <(E-Mail Removed)>
| 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: <(E-Mail Removed)>
| 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
|
| 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
|
|
|
|

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change Keyboard layout[i mean english,italian keyboard] =?Utf-8?B?LmJyZWF0aA==?= Windows XP Help 3 21st Aug 2007 03:38 PM
Need driver for keyboard layout for German Microsoft Natural Keyboard mydejamail@googlemail.com Windows XP General 0 5th Jan 2007 06:57 PM
Keyboard layout changes by itself Paul E Collins Windows XP General 1 13th Jun 2005 06:02 PM
Controling table layout dynamically. Bredahl jensen Microsoft ASP .NET 1 10th Jun 2005 04:51 PM
Changing layout of Chart in Crystal Reports 9 dynamically from VB.NET code. Vadim Microsoft VB .NET 2 10th Mar 2004 05:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:03 PM.