protected override void OnClosing(CancelEventArgs e) { // maybe we need to save the project ToolBars.SaveToolbarPositions(topToolStripContainer); Settings.SaveGlobalSettings(); // ToolStripManager.SaveSettings(this); // save the positions of the toolbars (doesn't work correctly) base.OnClosing(e); }
private void ParentForm_FormClosed(object sender, FormClosedEventArgs e) { // maybe we need to save the project ToolBars.SaveToolbarPositions(toolStripContainer); Settings.SaveGlobalSettings(); // ToolStripManager.SaveSettings(this); // save the positions of the toolbars (doesn't work correctly) cadFrame.Dispose(); Application.Idle -= OnIdle; }