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. BackSpace button

BackSpace button

Scheduled Pinned Locked Moved C#
help
11 Posts 7 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 srinivaskonijeti

    Hi , I wud like to implement the backspace button functionality to my button in the form. Plz help me by giving code

    V Offline
    V Offline
    Vimalsoft Pty Ltd
    wrote on last edited by
    #2

    What is a Backspace button? Explain what you want to achieve Clearly

    Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

    S 1 Reply Last reply
    0
    • V Vimalsoft Pty Ltd

      What is a Backspace button? Explain what you want to achieve Clearly

      Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

      S Offline
      S Offline
      srinivaskonijeti
      wrote on last edited by
      #3

      the function of backspace button in key board

      1 Reply Last reply
      0
      • S srinivaskonijeti

        Hi , I wud like to implement the backspace button functionality to my button in the form. Plz help me by giving code

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #4

        Use the key events on the form to check for a backspace key. When you detect the backspace key press then you need to implement the functionality you want.

        Never underestimate the power of human stupidity RAH

        1 Reply Last reply
        0
        • S srinivaskonijeti

          Hi , I wud like to implement the backspace button functionality to my button in the form. Plz help me by giving code

          S Offline
          S Offline
          sumit7034
          wrote on last edited by
          #5

          check this out http://www.csharp-station.com/Articles/EventHandlingInCSharp.aspx[^]

          1 Reply Last reply
          0
          • S srinivaskonijeti

            Hi , I wud like to implement the backspace button functionality to my button in the form. Plz help me by giving code

            S Offline
            S Offline
            srinivaskonijeti
            wrote on last edited by
            #6

            Hi, I hav a textbox anda button on my screen when i press button on the screen it shud delete the text in the textbox ex: as Backspace on the key board works

            P M 2 Replies Last reply
            0
            • S srinivaskonijeti

              Hi, I hav a textbox anda button on my screen when i press button on the screen it shud delete the text in the textbox ex: as Backspace on the key board works

              P Offline
              P Offline
              Pedram Behroozi
              wrote on last edited by
              #7

              You can write your custom Backspace function in Button_Click event, something like this:

              Button_Click()
              {
              //[Edit]
              if (TextBox != "")
              //[/Edit]
              TextBox.Remove(LastCharacter);
              }// This is not an executable code, it just gives you the main idea

              Regards

              While (true) { Human.isLearnable = true; }

              1 Reply Last reply
              0
              • S srinivaskonijeti

                Hi, I hav a textbox anda button on my screen when i press button on the screen it shud delete the text in the textbox ex: as Backspace on the key board works

                M Offline
                M Offline
                Mycroft Holmes
                wrote on last edited by
                #8

                Ok so your first shot at explaining your problem was not very good. This one is much better, and Pedram has supplied an answer, well done for persisting.

                Never underestimate the power of human stupidity RAH

                R 1 Reply Last reply
                0
                • M Mycroft Holmes

                  Ok so your first shot at explaining your problem was not very good. This one is much better, and Pedram has supplied an answer, well done for persisting.

                  Never underestimate the power of human stupidity RAH

                  R Offline
                  R Offline
                  Rajesh R Subramanian
                  wrote on last edited by
                  #9

                  I'm tired of balancing the votes on your post. You have a fan I guess. :)

                  Cheers, Rajesh R Subramanian.

                  It is a crappy thing, but it's life -^ Carlo Pallini

                  M 1 Reply Last reply
                  0
                  • R Rajesh R Subramanian

                    I'm tired of balancing the votes on your post. You have a fan I guess. :)

                    Cheers, Rajesh R Subramanian.

                    It is a crappy thing, but it's life -^ Carlo Pallini

                    M Offline
                    M Offline
                    Mycroft Holmes
                    wrote on last edited by
                    #10

                    Rajesh, I appreciate the effort but you need not bother, I am happy to ignore the voting thingy. I like to see the odd 5 when I manage to get in a particularly witty response and I enjoy them when I can help someone but a univoter can be ignored. Besides I am not a polite person so I expect to irritate someone sometime and a univote is often the only response they have. Thank you...

                    Never underestimate the power of human stupidity RAH

                    1 Reply Last reply
                    0
                    • S srinivaskonijeti

                      Hi , I wud like to implement the backspace button functionality to my button in the form. Plz help me by giving code

                      H Offline
                      H Offline
                      Hesham Yassin
                      wrote on last edited by
                      #11

                      try to use the ASCII code for backspace instead of using the enum Key

                      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