473,769 Members | 1,959 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

changin Keyboard layout dynamically

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

Nov 20 '05 #1
1 7340
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.Globaliz ation.CultureIn fo(&H809)
InputLanguage.C urrentInputLang uage = InputLanguage.F romCulture(x)
You can see a full list of the culture info id's in help:
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 APR.1033/cpref/html/frlrfsystemglob ali
zationculturein foclasstopic.ht m
If that link doesn't work simply look up the CultureInfo Class.
Cameron McColl
Microsoft
--------------------
| From: "Aftab Alam" <af********@asc ertia.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: <eU************ **@TK2MSFTNGP11 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.langua ges.vb
| NNTP-Posting-Host: 203.81.201.108
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:134088
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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
|
|
|
|

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

30
2318
by: ajsiegel | last post by:
Arthur wrote: >> And either intuitively, or consciously, he is doing something that >> offsets it from something truly intergrated into the core of the >> language. By breakling all of his own rules. >But it *isn't* part of the core language. I think that's the whole >point. @decorator does something that no other statement in Python does, >so why should it *look* like a normal statement? Or are you suggesting >that a keyword should be...
9
2533
by: skearney | last post by:
When I was in boy scouts, as part of learning Morse code, I was told that the inventor of the typewriter originally put the letter 'e' under the left middle finger, just below its present position. The typist was often too fast and the print bars would jam. I heard the same story when I took a typing class. This led me to wonder if 't' might have been moved from the home row for the same reason. 'E is dit and T is dash, under middle...
13
2765
by: Steve Jorgensen | last post by:
Well, it seems that Microsoft, or whatever powers that be have decided it's time for us to have yet another standard keyboard layout change. I think I see that the point of this one was to reduce the space occupied by the keys on the right, so the reach to the mouse is not so bad, but the way they chose to do it? Ah - I see. Since most of what we type will simply be deleted at some point, let's make sure the Delete key is big and easy...
2
3341
by: Rudi | last post by:
Hello all, posting my question in this newsgroup is about the last alternative I can think of to resolve my problem. The standard keyboard layout in the office is AZERTY. Still, my access xp mdb acts as if the keyboard is QWERTY. I deleted the QWERTY layout in regional settings in win xp pro. However, whenever I open the VBA code, it recreates QWERTY in regional
2
2953
by: Santy | last post by:
Hi! Suppose I detected, using DInput, the 1 key is pressed. I wanna get the shift+1 symbol on the current culture-keyboard.... For example.... In my spanish keyboard, shift+1 yields a "!". This is not valid for ALL the keyboards in the world... so How can I get the +1 keyboard-mapped character? thx in advance.
0
1302
by: Bryan Berns | last post by:
Just wondering whether anyone has an idea as how to set the default keyboard layout for the system in realtime. The following code I have does it for all ACTIVE processes. (New ones still use the old keyboard layout). This particular example changes the normal layout to dvorak. HKL hkl = LoadKeyboardLayout("00010409",KLF_ACTIVATE | KLF_REORDER | KLF_REPLACELANG) ActivateKeyboardLayout(hkl,KLF_REORDER | KLF_SETFORPROCESS | KLF_REPLACELANG)...
3
2016
by: nhmark64 | last post by:
Hi, Sometimes when I am cutting and pasting it looks like the keyboard layout changes; for instance ',' and 'w' are interchanged. Is there a better way to fix this problem than exiting then restarting the IDE? Thanks, Mark
4
4166
by: Melson | last post by:
Hi Can anyone help. I would like to replace the keys on the PC keyboard. For example, when I press Q button it displays A on the screen in any programs (MS Words, Note, Lotus....). And also when I press Ctrl + W button, it displays G on the screen. I would like to make the keyboards configurable. Should I write a Windows Service? Any suggestions would really appreciate. Please help. Thanks.
3
3796
tpgames
by: tpgames | last post by:
I'm looking for a program or command line or anything that would allow me to have more than the maximum 4 keyboard layout language groups that keyboard preferences in Ubuntu restricts me too. I can work with 5, but more would be better. I like to switch between US and UK but need German, Russian, Hebrew, Greek, and French as I use these languages often either in conversing, researching, Bible Study, or word game making. Its a pain in the rear to...
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9420
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10205
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9851
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8863
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7401
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3556
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.