Ejemplo n.º 1
0
 private void Agent_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         Interest.Focus();
     }
 }
 //============================================================================================
 private void AccountBalance_KeyPress(object sender, KeyPressEventArgs e)
 //============================================================================================
 {
     if (!Validate(e, AccountBalance.Text))
     {
         string valid = ".0123456789";
         if (valid.Contains(e.KeyChar))
         {
             return;
         }
         else
         {
             e.KeyChar = Convert.ToChar(0);
             return;
         }
     }
     else
     {
         Interest.Focus( );
     }
 }