// Create the SoundPlayer object
System.Media.SoundPlayer s = new System.Media.SoundPlayer();
// Set the location of the wav file to play
s.SoundLocation = @"C:\Program Files\messenger\newalert.wav";
// Play looping
s.PlayLooping();
// Play normal
s.Play();
// Stop
s.Stop();