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