Example #1
0
 private void CB_DesOtros2_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         TB_Equiv1.Focus();
         CB_DesOtros2.BackColor = SystemColors.Control;
     }
 }
Example #2
0
 private void TB_Otros2_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         TB_Equiv1.Focus();
     }
     else if (e.KeyCode == Keys.Escape)
     {
         TB_Otros2.Text = "";
     }
 }
Example #3
0
        private void CB_NecOtros2_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                if (CB_NecOtros2.Checked)
                {
                    TB_Equiv1.Focus();
                }
                else
                {
                    CB_DesOtros2.Focus();
                    CB_DesOtros2.Select();
                    CB_DesOtros2.BackColor = Color.DarkSlateGray;
                }

                CB_NecOtros2.BackColor = SystemColors.Control;
            }
        }