private void openSectionToolStripMenuItem_Click(object sender, EventArgs e) { using (SelectSectionForm frm = new SelectSectionForm()) { if (frm.ShowDialog(this) == DialogResult.OK) { SectionEditorForm c = new SectionEditorForm(frm.MappedFile, frm.OpenedHandle, frm.ReadOnly); c.Show(dockPanel, DockState.Document); } } }