Example #1
0
 private void TB_Desde_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         TB_Hasta.Focus();
     }
     else if (e.KeyCode == Keys.Escape)
     {
         TB_Desde.Clear();
     }
 }
Example #2
0
        private void TB_Desde_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Enter)
            {
                if (TB_Desde.Text.Replace('/', ' ').Trim() == "")
                {
                    return;
                }

                TB_Hasta.Focus();
            }
            else if (e.KeyData == Keys.Escape)
            {
                TB_Desde.Clear();
            }
        }