Results 1 to 4 of 4

Thread: Backspace button.

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2010
    Posts
    14

    Lightbulb Backspace button.

    Hi.
    I am making a calculator.
    I need a button that functions like a Backspace-button on a calculator. Erase the last inserted char, or what ever may work.
    I use:
    Button1
    TextBox1

    Thanks.

  2. #2
    Fanatic Member amrita's Avatar
    Join Date
    Jan 2007
    Location
    Orissa,India
    Posts
    888

    Re: Backspace button.

    On hitting the button , rewrite the string with all charcters except length - 1 character.
    thanks
    amrita

  3. #3

  4. #4
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Backspace button.

    be sure to check the length of the text property first, if there's only 1 char than set the text equal to "0" instead of removing the char.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width