private void displayChartToolStripMenuItem_Click(object sender, EventArgs e) { FrmGraphs FrmGraphsMDIChild = new FrmGraphs(); // Set the Parent Form of the Child window. FrmGraphsMDIChild.MdiParent = this; // Display the new form. FrmGraphsMDIChild.Show(); FrmGraphsMDIChild.BringToFront(); }
private void DashBoardMenu_Load(object sender, EventArgs e) { FrmGraphs FrmGraphsMDIChild = new FrmGraphs(); // Set the Parent Form of the Child window. FrmGraphsMDIChild.MdiParent = this; // Display the new form. FrmGraphsMDIChild.Show(); FrmGraphsMDIChild.BringToFront(); toolStrip1.Visible = false; }