how to backspace?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • whisperXming
    New Member
    • Nov 2008
    • 2

    how to backspace?

    Hi, im doing a currency convertor program. I've done up most of the parts, but im not sure how to backspace. For example of user entered wrong number, when the user click on backspace, it'll delete the last number he entered.

    thanks
  • joedeene
    Contributor
    • Jul 2008
    • 579

    #2
    Isn't that what backspace is suppose to do, delete the last entered character? What do you want the backspace to do?

    joedeene

    Comment

    • whisperXming
      New Member
      • Nov 2008
      • 2

      #3
      sorry to cause the misunderstandin g. what i meant was if user click on backspace, how should i put the code to let the backspace button delete the last number the user entered.

      Comment

      • joedeene
        Contributor
        • Jul 2008
        • 579

        #4
        What have you got so far? Like, what is your program doing. I suppose you're using a text box. Are you converting the user's input from one currency to another currency in another text box? Or are you using the same text box to convert the text.

        I still don't quite understand why the backspace isn't working. If you're converting the input into another different text box and leaving the input alone, and that text box, which contains the input, has focus, it should definitely delete the last entered character, unless you are coding with a textbox_textcha nged event. Also, what language are you coding in?

        joedeene

        Comment

        • balabaster
          Recognized Expert Contributor
          • Mar 2007
          • 798

          #5
          So you're looking for the .NET equivalent of SendKeys(backsp ace)?

          http://msdn.microsoft. com/en-us/library/system.windows. forms.sendkeys. aspx

          Comment

          • lotus18
            Contributor
            • Nov 2007
            • 865

            #6
            Hi

            Why don't you create a validation that will prevent the user to enter wrong number?


            Rey Sean

            Comment

            Working...