private void Form1_KeyDown(object sender, KeyEventArgs e) { // Checks key pressed - Space to shoot, ESC to open HelpMenu, Left/Right to move paddle if (e.KeyCode == Keys.Space) { scene.shoot(); } else if (e.KeyCode == Keys.Escape) { help = new HelpMenuForm(); timer.Enabled = false; if (help.ShowDialog(this) == DialogResult.Cancel) { timer.Enabled = true; } else { this.Hide(); } } else { scene.Move(e.KeyCode); } Invalidate(true); }
private void btnHelp_Click(object sender, EventArgs e) { help = new HelpMenuForm(); help.Show(); }