SoFunction
Updated on 2025-03-07

Under WinForm TextBox only allows input numbers


 private void txtBarCode_KeyPress(object sender, KeyPressEventArgs e)
        {
            int ikc = (int);
            if ((!((), "[0-9]")) && ((int)) != 8)
            {
                = true;
                return;
            }
        }