Well I've got five audio files that I want to play in the background of my program one after the other (like a playlist), however, I can only get one to play (which is the last one). I have also tried changing AudioPlayMode.Background to AudioPlayMode.WaitToComplete but with no luck. The music plays correctly but the form does not load. I am trying to find a way to get all five songs to play one after the other in the background of my program.
Here is the code:
Code:
Private Sub frmStart_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Music(4) As Object
Music(0) = "Music1.wav"
Music(1) = "Music2.wav"
Music(2) = "Music3.wav"
Music(3) = "Music4.wav"
Music(4) = "Music5.wav"
Dim MusicCount As New Integer
For MusicCount = 0 To 4
My.Computer.Audio.Play(Music(MusicCount), AudioPlayMode.Background)
Next
End Sub
It would be great if you could use simple terms as I'm a novice when it comes to programming. All help would be greatly appreciated, thanks.