private void backBtn_Click(object sender, EventArgs e) { orPanel.Visible = false; backBtn.Enabled = false; replayBtn.Enabled = false; stopBtn.Enabled = false; this.Hide(); frmSelect fN = new frmSelect(); fN.ShowDialog(); this.Close(); }
private void frmMenu_KeyDown(object sender, KeyEventArgs e) { switch (e.KeyData) { case Keys.Enter: this.Hide(); frmSelect fS = new frmSelect(this); fS.ShowDialog(); this.Close(); break; case Keys.Space: break; } }