Just for newbies like me to coding i found a good sting to use after the form1 or your main form in the coding section.
This was done in VS 2010 U.
Ill inclice the form1 load form for easy finding if you dont put yours at the start:
Heres the code for a song called WAVESONG.wav:
Heres the loop version: "Just adding a loop the the backround"
Hope this hepls!
This was done in VS 2010 U.
Ill inclice the form1 load form for easy finding if you dont put yours at the start:
Heres the code for a song called WAVESONG.wav:
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
My.Computer.Audio.Play(My.Resources.WAVESONG, AudioPlayMode.Background)
End Sub
Heres the loop version: "Just adding a loop the the backround"
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
My.Computer.Audio.Play(My.Resources.WAVESONG, AudioPlayMode.BackgroundLoop)
End Sub
Hope this hepls!