private void pictureBox1_Click(object sender, EventArgs e) { MenuP a = new MenuP(); this.Hide(); a.ShowDialog(); }
private void Form1_KeyDown_1(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Space) { MenuP a = new MenuP(); this.Hide(); a.ShowDialog(); } }