private void FormMain_KeyDown(object sender, KeyEventArgs e) { if (e.Control && e.KeyCode == Keys.F) { FeeSubmission feeSubmission = new FeeSubmission(); feeSubmission.ShowDialog(); } if (e.Control && e.KeyCode == Keys.S) { SearchStudent search = new SearchStudent(); search.ShowDialog(); } if (e.Control && e.KeyCode == Keys.A) { AddStudent search = new AddStudent(); search.ShowDialog(); } if (e.Control && e.KeyCode == Keys.V) { FeeVoucher vouc = new FeeVoucher(); vouc.ShowDialog(); } }
private void paneladdstd_Click(object sender, EventArgs e) { AddStudent ad = new AddStudent(); ad.ShowDialog(); }