Hi i am makeing a little alarm clock and want to add a wav sound I done the code below but there is no sound when i use the code the wave file is also in the correct place any idea what i am doing wrong thanks.
Code:string sFile = Path.Combine(Application.StartupPath, "attention.wav");
if (File.Exists(sFile))
{
System.Media.SoundPlayer sp = new SoundPlayer();
sp.SoundLocation = sFile;
sp.Play();
}
