Background Music

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
1 post Page 1 of 1
Contributors
User avatar
MrAlicard
VIP - Donator
VIP - Donator
Posts: 54
Joined: Thu Aug 05, 2010 4:08 pm

Background Music
MrAlicard
Hi today i will be making a tutorial on how to add background music to any visual basic application

I will be using spoilers to show pictures and also explaining what to do Above the photos
Lets get started.

First Step:

Find the music you want to put in the program (must be a .wav for this method to work)
Image

Second Step:

Go to your programs resources file, Click and Drag the .wav file onto the files audios resource part (My Project-->Resources)
Image

Third Step:

Double click on your form and add this code
Code: Select all
My.Computer.Audio.Play(My.Resources.nameofaudio, AudioPlayMode.BackgroundLoop)
(change backgroundloop to background if you want it to only play once)
Image

Final Step:

Debug and listen to you new background music.

Thanks for reading

Enjoy
1 post Page 1 of 1
Return to “Tutorials”