Background Sound Windows Forms

309 Views Asked by At

I am trying to play a song in the background of my windows form aplication. I tried this:

 System.Media.SoundPlayer sound = new System.Media.SoundPlayer();
 sound.Stream = Properties.Resources.K_39_NAAN___Wavin_39_Flag;
 sound.PlayLooping();

But when i do this, When my application runs for an x number of minutes and i get this error:

vshost32.exe has stopped working

I cant just use an url because it has to be installed on other computers and work.

0

There are 0 best solutions below