Esempio n. 1
0
        private void CreateChild()
        {
            VehiclesForm vehiclesForm = new VehiclesForm(document);

            vehiclesForm.MdiParent = this;
            vehiclesForm.Show();
            openedForms.Add(vehiclesForm);
        }
Esempio n. 2
0
        private void MainForm_MdiChildActivate(object sender, EventArgs e)
        {
            ToolStripManager.RevertMerge(toolStrip);

            VehiclesForm frmChild = (VehiclesForm)ActiveMdiChild;

            if (frmChild != null)
            {
                ToolStripManager.Merge(frmChild.toolStrip1, toolStrip);
            }
        }