Play sound when the splash screen is displayed?
1 answer
Use System.Media.SoundPlayer
. You may need to put this code in Form_Load.
private void button1_Click(object sender, EventArgs e)
{
System.Media.SoundPlayer player = new System.Media.SoundPlayer();
player.SoundLocation = @"C:\Windows\Media\chimes.wav";
player.Play();
}
+2
source to share