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();
     }
 }
Пример #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();
            }
        }
Пример #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;
     }
 }