char ch = e.KeyChar; if (!Char.IsDigit(ch) && ch != 8 && ch != 46 && ch != 110 && ch != 189 && ch != 13) { e.Handled = true; MessageBox.Show("Please Enter Valid Input"); }
ch
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)