private void btnAddLec_Click(object sender, EventArgs e) { AddLecturer AddLecturer = new AddLecturer(); AddLecturer.Show(); this.Hide(); }
private void btnAddLec_Click(object sender, EventArgs e) { AddLecturer frm = new AddLecturer() { Dock = DockStyle.Fill, TopLevel = false, TopMost = true }; this.pnlView.Controls.Add(frm); frm.Show(); }