Пример #1
0
 private void txtBillValue_KeyPress(object sender, KeyPressEventArgs e)
 {
     e.Handled = ObjUtil.IsDecimal(txtBillValue, e);
     if (e.Handled == true)
     {
         clsUtility.ShowInfoMessage("Enter Only Numbers...", clsUtility.strProjectTitle);
     }
 }
        private void Decimal_Control_KeyPress(object sender, KeyPressEventArgs e)
        {
            //string k = e.KeyChar.ToString();
            TextBox txt = (TextBox)sender;

            e.Handled = ObjUtil.IsDecimal(txt, e);
        }
Пример #3
0
        private void txtDiscount_KeyPress(object sender, KeyPressEventArgs e)
        {
            TextBox txt = (TextBox)sender;

            e.Handled = ObjUtil.IsDecimal(txt, e);
            if (e.Handled == true)
            {
                clsUtility.ShowInfoMessage("Enter Only Numbers...", clsUtility.strProjectTitle);
            }
        }