Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Get to desired unicode subrange!

Get to desired unicode subrange!

Scheduled Pinned Locked Moved .NET (Core and Framework)
questioncsharp
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CoolAmir
    wrote on last edited by
    #1

    Hi guys :~ I put some textBoxes in a form & need to let users type in one of the UTF8 languages but don't want to require them to change the language each time (not from language bar nor Alt+Shift) Is there any specific method in dotNet or i need to override onKeyDown/press or whatever. All i can think of is mapping each EventArgs.keycode to a hexadecimal form of the corresponding unicode character 'uxxxx'? or transpose values to get to the desired subrange in unicode? I used Decoder.GetChars & it gives me 2 bytes for each char. How can i use these 2 bytes to transpose input char to the desired language equal? Thanx for any hints :doh:

    C 1 Reply Last reply
    0
    • C CoolAmir

      Hi guys :~ I put some textBoxes in a form & need to let users type in one of the UTF8 languages but don't want to require them to change the language each time (not from language bar nor Alt+Shift) Is there any specific method in dotNet or i need to override onKeyDown/press or whatever. All i can think of is mapping each EventArgs.keycode to a hexadecimal form of the corresponding unicode character 'uxxxx'? or transpose values to get to the desired subrange in unicode? I used Decoder.GetChars & it gives me 2 bytes for each char. How can i use these 2 bytes to transpose input char to the desired language equal? Thanx for any hints :doh:

      C Offline
      C Offline
      CoolAmir
      wrote on last edited by
      #2

      u stupid junk didn't need to spend that much time overriding OnKeyDown & do lots of mappings. U need to use InputLanguage Class :~

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups