Play soundfiles embedded in your app (resource)
Hiya!! I just putted together a small tutor how to make yor app play with resourcefiles.
1. Open your project properties.
http://www.vbforums.com/attachment.p...2&d=1202571358
2. Click resources tab, then choose audio.
http://www.vbforums.com/attachment.p...0&d=1202571311
3. Click "Add resource" then "Add existing file".
http://www.vbforums.com/attachment.p...1&d=1202571320
After that, use this code to play your sound.
Code:
My.Computer.Audio.Play(My.Resources.Hit, AudioPlayMode.Background) 'Hit is the soundfile in my case
Hope u enjoy it. It took me a wile to find info about it. But thx to all at vbforums i finally got up with this. :wave:
Re: Play soundfiles embedded in your app (resource)
i'm usein vb.net 2003 but i didn't find the resources tab :(