private void btnAbout_Click(object sender, EventArgs e) { using (var w = new frmAbout()) { w.ShowDialog(this); } }
protected override void OnKeyDown(KeyEventArgs e) { if (e.KeyCode == Keys.F1) { e.Handled = true; using (var f = new frmAbout()) { f.ShowDialog(this); } } else if (e.KeyCode == Keys.F9) { e.Handled = true; PasteAndGo(); } base.OnKeyDown(e); }