Пример #1
0
 private void TB_Desde_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         TB_Hasta.Focus();
     }
 }
Пример #2
0
 private void TB_Hasta_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyData == Keys.Escape)
     {
         TB_Hasta.Clear();
     }
 }
Пример #3
0
 private void TB_Desde_KeyDown(object sender, KeyEventArgs e)
 {
     //PresionarBotonBuscar(e);
     if (e.KeyCode == Keys.Enter)
     {
         TB_Hasta.Focus();
     }
 }
Пример #4
0
        private void TB_Desde_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                if (TB_Hasta.Text.Trim() == "")
                {
                    TB_Hasta.Text = TB_Desde.Text;
                }

                TB_Hasta.Focus();
            }
            else if (e.KeyCode == Keys.Escape)
            {
                TB_Desde.Text = "";
            }
        }
Пример #5
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.Text = "";
            }
        }
Пример #6
0
        private void TB_Hasta_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Enter)
            {
                if (TB_Hasta.Text.Replace('/', ' ').Trim() == "")
                {
                    return;
                }

                DGV_EvalSemProve.Rows.Clear();

                button1_Click(null, null);
            }
            else if (e.KeyData == Keys.Escape)
            {
                TB_Hasta.Clear();
            }
        }