Below Coding for accept only Numbers.....
if ((e.KeyChar < 48 || e.KeyChar > 57) && e.KeyChar != 8)
{
e.Handled = true; // Remove the character
MessageBox.Show("Please Enter No only...");
}
Home Windows forms How to validate textbox to accept only numeric value in C#.net
0 comments: on "How to validate textbox to accept only numeric value in C#.net"
Post a Comment