Interviews2 answers
how backSpace key can work in Text Box?
2 Answers
private void TextBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (!Char.IsLetter(e.KeyChar) && !Char.IsControl(e.KeyChar))
e.Handled = true;
}
Munesh SharmaPosted Apr 16, 2014, 8:42 AM EDT
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if(e.Keychar=='\b')
{
e.Handled=false;
}
}
{
if(e.Keychar=='\b')
{
e.Handled=false;
}
}
Bineesh ViswanathPosted Jul 1, 2013, 9:04 AM EDT

