コード例 #1
0
 private void pictureBox4_Click(object sender, EventArgs e)
 {
     sp.Play();
     this.Hide();
     f1.ShowDialog();
     this.Close();
 }
コード例 #2
0
        private void pictureBox18_Click(object sender, EventArgs e)
        {
            SoundPlayer sp = new SoundPlayer(@"C:\Users\Attachai\Source\Repos\FormWerewolf\WindowsFormsApp2\Resources\PressButton.wav");

            sp.Play();
            Mainmanu f1 = new Mainmanu();

            this.Hide();
            f1.ShowDialog();
            this.Close();
        }