コード例 #1
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            MenuP a = new MenuP();

            this.Hide();
            a.ShowDialog();
        }
コード例 #2
0
 private void Form1_KeyDown_1(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Space)
     {
         MenuP a = new MenuP();
         this.Hide();
         a.ShowDialog();
     }
 }