//Type this code on the KeyPress event of the textbox
private void textBox_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsDigit(e.KeyChar) == true)
MessageBox.Show("You can't type a numeric values");
}
//Type this code on the KeyPress event of the textbox
private void textBox_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsDigit(e.KeyChar) == true)
MessageBox.Show("You can't type a numeric values");
}
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.
Mike GoldPosted May 14, 2009, 3:18 PM
what happens when you try to paste a character into the textbox?
chandra mohanPosted May 11, 2009, 12:58 AM
hi frinds hierarchy gridview2.0 version ..plz any body help this is very urgent.