textBox1.text = textbox1.substring(0, textbox1.text.length - 1)
private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 8) { //backspace is used... add your logic here.. } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)