private void txtCurrencyCode_KeyPress(object sender, KeyPressEventArgs e) { e.Handled = ObjUtil.IsString(e); if (e.Handled == true) { clsUtility.ShowInfoMessage("Enter Only Charactors...", clsUtility.strProjectTitle); txtCurrencyCode.Focus(); } }
private void txtName_KeyPress(object sender, KeyPressEventArgs e) { TextBox txt = (TextBox)sender; e.Handled = ObjUtil.IsString(e); if (e.Handled == true) { clsUtility.ShowInfoMessage("Enter Only Charactors...", clsUtility.strProjectTitle); txt.Focus(); } }
private void txtCustomerName_KeyPress(object sender, KeyPressEventArgs e) { if (Objutil.IsString(e) == false) { e.Handled = false; } else { clsUtility.ShowErrorMessage("Enter Only Charactors ", clsUtility.strProjectTitle); txtCustomerName.Focus(); e.Handled = true; } }