private void txtItemCls_KeyPress(object sender, KeyPressEventArgs e) { if (!KeyPressJudge.IsStr(e.KeyChar)) { e.Handled = true; } }
private void txt_qty_KeyPress(object sender, KeyPressEventArgs e) { if (!(KeyPressJudge.IsNum(e.KeyChar) || KeyPressJudge.IsKeyBord(e.KeyChar))) { e.Handled = true; } }
private void txtCredit_amt_KeyPress(object sender, KeyPressEventArgs e) { if (!KeyPressJudge.IsNum(e.KeyChar) && !KeyPressJudge.IsEnter(e.KeyChar) && !KeyPressJudge.IsBackKey(e.KeyChar)) { e.Handled = true; } }
private void txtName_KeyPress(object sender, KeyPressEventArgs e) { if (KeyPressJudge.IsStr(e.KeyChar) || KeyPressJudge.IsBackKey(e.KeyChar) || e.KeyChar == 8 || Char.IsDigit(e.KeyChar)) { } else { e.Handled = true; } }
private void txtStudentID_KeyPress(object sender, KeyPressEventArgs e) { if (KeyPressJudge.IsEnglish(e.KeyChar) || KeyPressJudge.IsBackKey(e.KeyChar) || KeyPressJudge.IsKeyBord(e.KeyChar) || KeyPressJudge.IsEnter(e.KeyChar) || KeyPressJudge.IsNum(e.KeyChar) || e.KeyChar == 8 || Char.IsDigit(e.KeyChar)) { } else { e.Handled = true; } }
private void txtSupName_KeyPress(object sender, KeyPressEventArgs e) { if (!KeyPressJudge.IsStr(e.KeyChar)) { e.Handled = true; } if (KeyPressJudge.IsBackKey(e.KeyChar) == false && e.KeyChar != 8) { if (StringHelper.GetLength(txtSupName.Text) >= 100) { e.Handled = true; } } }