示例#1
0
 private void какСеИграеF1ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form4 subForm = new Form4(this);
     subForm.ShowDialog();
 }
示例#2
0
 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(); }
 }