473,326 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

keyboard layout change culture/locale

Hello,

I'm new on C# and i'm trying to implement a control that traps a
certain sequence of keys to use for shortcut key functionality like the
one used in the the Tools->Customize->Keyboard->"Press shorcut key(s)"
control in IDE.

Traping the normal keys in the keyboard works, keys from 0-9 and A-Z
all ok, but the problem is when i press some special keys for example
this ~ < what appears on my ctrl is something like OemQuestion
OemBackslash respectivly.

I think that the problem is the localization that i have configured,
because my default input language is Portugues and i think that the one
that is given me is the default of the O.S.

My question is how i can set the culture/locale in my program to
enable the portuguese keyboard layot, and when i press for example ~ it
gives me the proper key in OnKeyDown(KeyEventArgs e) on e.KeyCode, or
is nothing like that and i only have to convert the KeyCode to the one
in my culture? -> if yes how this is done...

Thanks

Mar 18 '06 #1
0 1746

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

Similar topics

1
by: karen.mcdonagh | last post by:
Hi, I have generated resource files for a different language and generated a satellite assembly for it, signed it and placed it in the GAC. When I change the UI culture within the code the...
2
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...
1
by: Aftab Alam | last post by:
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...
2
by: Dan | last post by:
Sorry if this post may sound a bit off-topic, but I could not find a specialized newsgroup. I have created a dotnet 2.0 library containing some user controls and written in C#. One of the controls...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.