//teclando F9 abre o form de semestres para matricular um aluno private void cbxSemestre_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.F9) { frmSemestresCadastro telaSemestre = new frmSemestresCadastro(frmSemestresCadastro.eStatusForm.search); telaSemestre.ShowDialog(); } else if (e.KeyCode == Keys.Delete) { e.Handled = true; } }
private void btnInserirSemestre_Click(object sender, EventArgs e) { frmSemestresCadastro cadastrarSem = new frmSemestresCadastro(); cadastrarSem.Show(); }