private void txtbox1_KeyPress(object sender, KeyPressEventArgs e)
{
//MessageBox.Show(Convert.ToInt32(e.KeyChar).ToString());
if (Convert.ToInt32(e.KeyChar) == 8)
return;
if (char.IsDigit(e.KeyChar) == false)
{
MessageBox.Show("Enter numerics only");
e.Handled = true;
}
}
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.

Dinkar ChavhanPosted Apr 20, 2011, 2:40 AM
nice blog