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
  1. Home
  2. General Programming
  3. C#
  4. forcing users to use English language

forcing users to use English language

Scheduled Pinned Locked Moved C#
6 Posts 6 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.
  • S Offline
    S Offline
    sina rafati nia
    wrote on last edited by
    #1

    Hi I need to force users to write in and fill forms using "English". And they cant be able to change language by pressing "Alt+ Shift". thanks a lot for your helps... :)

    M N L A J 5 Replies Last reply
    0
    • S sina rafati nia

      Hi I need to force users to write in and fill forms using "English". And they cant be able to change language by pressing "Alt+ Shift". thanks a lot for your helps... :)

      M Offline
      M Offline
      Manfred Rudolf Bihy
      wrote on last edited by
      #2

      Now that's all very nice, but you forgot to ask a question. Regards, Manfred

      "I had the right to remain silent, but I didn't have the ability!"

      Ron White, Comedian

      1 Reply Last reply
      0
      • S sina rafati nia

        Hi I need to force users to write in and fill forms using "English". And they cant be able to change language by pressing "Alt+ Shift". thanks a lot for your helps... :)

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        This would be tricky. If you just want to ensure script used is English, it is easy. Just scan every character in the input and make sure all the characters are valid English letters. But user can write another language using the English script. Detecting this would be tough and you need to use some natural language processing libraries.

        Best wishes, Navaneeth

        1 Reply Last reply
        0
        • S sina rafati nia

          Hi I need to force users to write in and fill forms using "English". And they cant be able to change language by pressing "Alt+ Shift". thanks a lot for your helps... :)

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Why does it matter? In "English" you can still type random crap in the form (and if you think that means ascii-only, consider pasting and alt-codes), so you'd still have to deal with it.

          1 Reply Last reply
          0
          • S sina rafati nia

            Hi I need to force users to write in and fill forms using "English". And they cant be able to change language by pressing "Alt+ Shift". thanks a lot for your helps... :)

            A Offline
            A Offline
            ali_heidari_
            wrote on last edited by
            #5

            a simple way is in textbox keypress event! check if user pressed alt or shift , show a messagebox and inform to user that he/she cant use this feature :) and if user changed language before activating textbox, you can check first charecter with textchanged event, if it is a charecter belong to persian (for example) ... with a message box say to user must change his/her language first :)

            1 Reply Last reply
            0
            • S sina rafati nia

              Hi I need to force users to write in and fill forms using "English". And they cant be able to change language by pressing "Alt+ Shift". thanks a lot for your helps... :)

              J Offline
              J Offline
              jschell
              wrote on last edited by
              #6

              Spell check using an english dictionary.

              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