Example #1
0
 private void CB_DesSec_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         TB_Terciaria.Focus();
         CB_DesSec.BackColor = SystemColors.Control;
     }
 }
Example #2
0
 private void TB_ObservSecundaria_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         TB_Terciaria.Focus();
     }
     else if (e.KeyCode == Keys.Escape)
     {
         TB_ObservSecundaria.Text = "";
     }
 }
Example #3
0
        private void CB_NecSec_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                if (CB_NecSec.Checked)
                {
                    TB_Terciaria.Focus();
                }
                else
                {
                    CB_DesSec.Focus();
                    CB_DesSec.Select();
                    CB_DesSec.BackColor = Color.DarkSlateGray;
                }

                CB_NecSec.BackColor = SystemColors.Control;
            }
        }