private void reportsToolStripMenuItem_Click(object sender, EventArgs e) { Doctor.DrReports newDrReports = new Doctor.DrReports(); newDrReports.MdiParent = this; newDrReports.FormBorderStyle = FormBorderStyle.None; newDrReports.ControlBox = false; newDrReports.MaximizeBox = false; newDrReports.MinimizeBox = false; newDrReports.Dock = DockStyle.Fill; newDrReports.Show(); }
public void InvDrReports() { Doctor.DrReports newDrReports = new Doctor.DrReports(); newDrReports.MdiParent = Application.OpenForms["DoctorDash"]; newDrReports.FormBorderStyle = FormBorderStyle.None; newDrReports.ControlBox = false; newDrReports.MaximizeBox = false; newDrReports.MinimizeBox = false; newDrReports.Dock = DockStyle.Fill; newDrReports.Show(); }