Example #1
0
 private void CB_DesOtros1_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         TB_Otros2.Focus();
         CB_DesOtros1.BackColor = SystemColors.Control;
     }
 }
Example #2
0
 private void TB_Otros1_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         TB_Otros2.Focus();
     }
     else if (e.KeyCode == Keys.Escape)
     {
         TB_Otros1.Text = "";
     }
 }
Example #3
0
        private void CB_NecOtros1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                if (CB_NecOtros1.Checked)
                {
                    TB_Otros2.Focus();
                }
                else
                {
                    CB_DesOtros1.Focus();
                    CB_DesOtros1.Select();
                    CB_DesOtros1.BackColor = Color.DarkSlateGray;
                }

                CB_NecOtros1.BackColor = SystemColors.Control;
            }
        }