C# Numbers Only code example
Example: C# Numbers Only
if (!Char.IsDigit(ch) && ch != 8 && ch != 46)
{
e.Handled = true;
}
if (!Char.IsDigit(ch) && ch != 8 && ch != 46)
{
e.Handled = true;
}