ZForge.Controls.TreeViewAdv.NumericTextBox.OnKeyPress C# (CSharp) Method

OnKeyPress() protected method

Restricts the entry of characters to digits, the negative sign, the decimal point, and editing keystrokes (backspace). It does not handle the AltGr key
protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs
return void
        protected override void OnKeyPress(KeyPressEventArgs e)
        {
            base.OnKeyPress(e);

            e.Handled = invalidNumeric(e.KeyChar);
        }