private void mnuPenDemo_Click(object sender, EventArgs e) { using (PenDemo frm = new PenDemo()) frm.ShowDialog(); }