0

I bought a Code bar Scanner to use it in my C# app in our local store

The Problem is the codebar scanner convert numbers to symbols ex:

'18092630' => '&_àçé-"à'
'3CE824093DB4' => '"CE_é'àç"DB''

until I Changed the keyboard layout from Azerty to Qerty

*the question is how to force TextBox to use Qerty layout without Changing the Input language or adding a qerty layout *

I need to keep my local language (fr-FR) as it is!

  • possible duplicate : https://stackoverflow.com/questions/37291533/change-keyboard-layout-from-c-sharp-code-with-net-4-5-2 – Halil İbrahim Nov 10 '18 at 11:37
  • So do you have problem with the scanner or with the TextBox? What symbols are coming from the scanner itself (you can see it in debugger)? – Miamy Nov 10 '18 at 11:49
  • 1
    I had deal with scanners over 10 years ago, but I remember some scanners can be set up via scanning spesial service code, and the one of settings to adjust was used charset. Check the manual to your model, maybe, you can solve the problem in this manner. – Miamy Nov 10 '18 at 11:57
  • The Problem with the scanner coz when I changed the layout from English azerty to English Qerty it works! e.g: '&' is '1' if you not clicked shift; by default & is 1 in Qerty Layout. – Oussama EL Issaoui Nov 10 '18 at 15:07
  • 1
    the really Problem I have is here: https://superuser.com/questions/990248/barcode-scanner-works-only-with-english-layout – Oussama EL Issaoui Nov 10 '18 at 15:53

0 Answers0