private void какСеИграеF1ToolStripMenuItem_Click(object sender, EventArgs e) { Form4 subForm = new Form4(this); subForm.ShowDialog(); }
public void f_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) new_game(); else if (e.KeyCode == Keys.Escape) this.Close(); else if (e.KeyCode == Keys.F3) { Form2 subForm = new Form2(this); subForm.ShowDialog(); } else if (e.KeyCode == Keys.F4) { Form3 subForm = new Form3(this); subForm.ShowDialog(); } else if (e.KeyCode == Keys.F1) { Form4 subForm = new Form4(this); subForm.ShowDialog(); } }