private void CreateChild() { VehiclesForm vehiclesForm = new VehiclesForm(document); vehiclesForm.MdiParent = this; vehiclesForm.Show(); openedForms.Add(vehiclesForm); }
private void MainForm_MdiChildActivate(object sender, EventArgs e) { ToolStripManager.RevertMerge(toolStrip); VehiclesForm frmChild = (VehiclesForm)ActiveMdiChild; if (frmChild != null) { ToolStripManager.Merge(frmChild.toolStrip1, toolStrip); } }