I am trying to play audio from a resource using .NET Compact Framework. I added an audio file for the resource property in my application and am trying to use the below samp
Try this:
//I added the file as a audio resource in my project SoundPlayer player = new SoundPlayer(Properties.Resources.recycle); player.Play();
I didn't try with .NET Compact Framework. But it is working for me in C#.