Ascii of backspace is 08.
but for calculator you need to trim from right.
Say your handler for the button backspace is
Private void backSpace_Click(object sender, EventArgs e)
{
string str=textBox.Text;
int len;
len=str.Length;
textBox.Text="";
textBox.Text= str.Substring(0, len - 1)
}
The
textBox
is the textbox where the numbers appears in the calculator.