csharp Numbers Only

Code Example - csharp Numbers Only

                
                        if (!Char.IsDigit(ch) && ch != 8 && ch != 46)
            {
                e.Handled = true;

            }