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. Question about textbox

Question about textbox

Scheduled Pinned Locked Moved C#
questionhelptutorial
5 Posts 3 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.
  • M Offline
    M Offline
    MHASSANF
    wrote on last edited by
    #1

    I have a problem in textbox i want when somebody enter a character in the textbox the textbox show another char (Unicode Char) for example if entered 'd' the textbox show 'h'(or Unicode char) is there any Solution? With Thanks MHF

    S A 2 Replies Last reply
    0
    • M MHASSANF

      I have a problem in textbox i want when somebody enter a character in the textbox the textbox show another char (Unicode Char) for example if entered 'd' the textbox show 'h'(or Unicode char) is there any Solution? With Thanks MHF

      S Offline
      S Offline
      saqib82
      wrote on last edited by
      #2

      you can do so using the event of KeyUp. Do whatever you want to do in that event and as the user will write some character, that character will immediately be converted to your desired character regards

      sAqIb "Our scientific power has outrun our spiritual power. We have guided missiles and misguided men." Dr. Martin Luther King Jr.

      M 1 Reply Last reply
      0
      • M MHASSANF

        I have a problem in textbox i want when somebody enter a character in the textbox the textbox show another char (Unicode Char) for example if entered 'd' the textbox show 'h'(or Unicode char) is there any Solution? With Thanks MHF

        A Offline
        A Offline
        aamironline
        wrote on last edited by
        #3

        I guess you are creating a textbox for custom non english language. Follow the following steps which will help you out. - Derive a class from TextBox. - Override OnKeyPress protected function (This is called before character is displayed on the screen). - Read e.KeyChar. - And finally replace e.KeyChar with new character. :rolleyes:Thats it...

        M Aamir Maniar aamirOnline.com

        M 1 Reply Last reply
        0
        • A aamironline

          I guess you are creating a textbox for custom non english language. Follow the following steps which will help you out. - Derive a class from TextBox. - Override OnKeyPress protected function (This is called before character is displayed on the screen). - Read e.KeyChar. - And finally replace e.KeyChar with new character. :rolleyes:Thats it...

          M Aamir Maniar aamirOnline.com

          M Offline
          M Offline
          MHASSANF
          wrote on last edited by
          #4

          But e.KeyChar is readonly ???? :confused: MHF

          1 Reply Last reply
          0
          • S saqib82

            you can do so using the event of KeyUp. Do whatever you want to do in that event and as the user will write some character, that character will immediately be converted to your desired character regards

            sAqIb "Our scientific power has outrun our spiritual power. We have guided missiles and misguided men." Dr. Martin Luther King Jr.

            M Offline
            M Offline
            MHASSANF
            wrote on last edited by
            #5

            Sorry but i can't understand exactly please give me a sample With regards MHf

            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