//Add subject button clicked in dashboard private void button5_Click(object sender, EventArgs e) { AddSubject AddSubject = new AddSubject(); AddSubject.Show(); this.Hide(); }
private void btnAddSubject_Click(object sender, EventArgs e) { AddSubject frm = new AddSubject() { Dock = DockStyle.Fill, TopLevel = false, TopMost = true }; this.pnlView.Controls.Add(frm); frm.Show(); }