please help me. i want to play a .wav file added to my solution's resources (file name is "start.wav"). i used the following code--
private void button1_Click(object sender, EventArgs e)
{
System.IO.Stream mystream = Properties.Resources.start;
OpenNETCF.Media.SoundPlayer myplayer = new OpenNETCF.Media.SoundPlayer();
myplayer.Stream = mystream;
myplayer.Play();
}
but error messase i get is "Cannot implicitly convert type 'byte[]' to 'System.IO.Stream".
is there any method to play a resource sound file.
please help

Problem in using OpenNetCF soundplayer class
Brett A. Scudder
joan_h
Replace the first line in the event handler with this:
MemoryStream mystream = new MemoryStream( Properties.Resources.start );
First ask from http://www.opennetcf.org/forums/, if you have problems with the OpenNETCF.
Joe Jackson
SideshowBob
But if you use OpenNETCF, you can simpy use this code to play a sound file in your current application folder:
SoundPlayer sound = new SoundPlayer("mySoundfile.wav");
sound.Play();
So simple is that.