I'll show you guys how to add Background music to your Visual Basics project. (2008 Edition)-
Guide:
1.- Start Visual Basics 2008
2.- Hit "New Project" at the very top.
3.- Name it like whatever you want and hit "Ok"
4.- Now.. First of all you need to save the Project 1 time, so there is Visual Basics Project folder of your Application, just hit "Save all" at the very top.
5.- I recommend you to save it : My documents -> Visual Studio 2008 -> Projects / But it doesn't matter that kinda much.
6.- Now if your done with saving the project, go and hit "Project" at the top, and click at the Roll down menu.. on Project Properities. At the end.
7.- You'll see a menu, click on "Resources".
8.- Now hit the small Arrow near "Add Resource" now you'll see a drop down menu, hit "Add existing file"
9.- Now you are in the Browse menu, go to the music you want to have as background music. (ONLY ".wav" Music FILES WILL WORK!) and double click on it.
10.- It should be added to your Resources now. IF IT GIVES YOU and error, go to your Project folder and make a Folder called "Resources" and add the music in it, and try to add the music again in the Resources.
11.- Now go back to the build menu, and add a Button.
12.- Double click on the Button, now you're in the Code- Menu.
13.- Now type in this:
CHANGE THE RED THING TO YOUR File Music NAME (WITHOUT ".WAV")
For Example:My.Computer.Audio.Play(My.Resources.song name of the song, AudioPlayMode.BackgroundLoop)
My.Computer.Audio.Play(My.Resources.song pokerface, AudioPlayMode.BackgroundLoop)
14. If you want a button which stops the song, make a second button and double click on it. And type in this code:
My.Computer.Audio.Stop()
15. Now your Project is done! You can debug it whatever you want.
If you got questions, comment etc.
Please comment if it works, would be nice to hear then.