title: How to delete the last character from a TextBox?
body: <p>I'm trying to write a copy of MS Windows Calculator - just to exercise the knowledge I have acquired in the course I'm doing - and I'm having problems to write the <kbd>Backspace</kbd> key, but I have no idea about how to delete the last character on <code>TxtResult.Text</code> (Text Box). So, can some one teach me how to do that?</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Windows.Forms;
  
  namespace ZigndSuperCalc
  {
      public partial class FrmZigndSC : Form
      {
          Int64 aux, result;
          Int16 cont = 0;
          bool sucess;
          public FrmZigndSC()
          {
              InitializeComponent();
          }
  
          private void BtnSoma_Click(object sender, EventArgs e)
          {
              sucess = Int64.TryParse(TxtInput.Text, out aux);
              result += aux;
              TxtInput.Text = Convert.ToString(result);
              TxtInput.Focus();
          }
  
          private void BtnCE_Click(object sender, EventArgs e)
          {
              TxtInput.Text = "0";
          }
  
          private void BtnC_Click(object sender, EventArgs e)
          {
              result = 0;
              TxtInput.Text = "0";
          }
  
          private void BtnBackspace_Click(object sender, EventArgs e)
          {
              // write here a method to delete the last character from 
          }
      }
  }
  </code></pre>