TraktPlugin.Configuration.txtPinCode_KeyPress C# (CSharp) Méthode

txtPinCode_KeyPress() private méthode

private txtPinCode_KeyPress ( object sender, KeyPressEventArgs e ) : void
sender object
e System.Windows.Forms.KeyPressEventArgs
Résultat void
        private void txtPinCode_KeyPress(object sender, KeyPressEventArgs e)
        {
            // only allows numbers 0-9
            if (!char.IsDigit(e.KeyChar) && (e.KeyChar != Convert.ToChar(Keys.Back)))
                e.Handled = true;
        }