private void CB_Deseable_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { BT_Guardar.Focus(); CB_Deseable.BackColor = SystemColors.Control; } }
private void CB_Necesario_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { if (CB_Necesario.Checked) { BT_Guardar.Focus(); } else { CB_Deseable.Focus(); CB_Deseable.Select(); CB_Deseable.BackColor = Color.DarkSlateGray; } CB_Necesario.BackColor = SystemColors.Control; } }