예제 #1
0
 private void txt_qty_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (!(KeyPressJudge.IsNum(e.KeyChar) || KeyPressJudge.IsKeyBord(e.KeyChar)))
     {
         e.Handled = true;
     }
 }
예제 #2
0
 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;
     }
 }
예제 #3
0
 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;
     }
 }