private void preferencesToolStripMenuItem_Click(object sender, EventArgs e) { var frm = new PreferencesForm(); frm.ShowDialog(this); }