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
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)

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

Third Step:
Double click on your form and add this code

Final Step:
Debug and listen to you new background music.
Thanks for reading
Enjoy
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)

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

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

Final Step:
Debug and listen to you new background music.
Thanks for reading
Enjoy
1 post
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023