Beispiel #1
0
 //keypress
 private void txtFacultyName_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (!_Faculty._checkCharacterNumberFaculty(e.KeyChar))
     {
         e.Handled = true;
         ((TextBox)sender).Focus();
         DevExpress.XtraEditors.XtraMessageBox.Show("Không được nhập ký tự số, chỉ được nhập chữ.", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }