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();
     }
 }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
 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;
     }
 }