I dunno :(
lol..there is just something that I just seem to be missing (besides my brain, that is!) ;)~
when I load 4 or 5 songs, and I check the "play All" checkbox, it does play all the songs.
when I load a couple of songs, and chck the "play All" checkbox..and then Hit the "Shuffle" Button..it just doesnt do right LOL
it will skip down to a song and play the song, and then immediatly at the end of the song, it will play the list in order.
when it finishes the list, instead of starting over at the top..it gives me out of range error. I know that this error is cuz I dont have any code to tell it what to do when it hits the bottom of the list.
but I do not understand where I am buggering up this freakin "shuffle button" at!
do I have to maybe make the "shuffle" button a checkbox as well?? like the play all box?? i mean, maybe because the "shuffle" is a button, you have to click it each time you want to random the songs in the list..where as a checkbox can be set on a time like the "play all"??
at any rate Sasha Kotlo, here is the code that i now have set for my "shuffle button" (which maybe should be a checkbox...) when you have some time and are feeling generous, could you once again take a look at it??
thanxxXXX :)
Private Sub btnShuffle_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnShuffle.Click
Dim IsShuffle As Boolean
If wmp.playState = WMPPlayState.wmppsPlaying Then
Else
If IsShuffle Then
' in case shuffle is on use the random code given before
Dim rand As New Random()
Listbox1.SelectedIndex = rand.[Next](0, Listbox1.Items.Count - 1)
ListBox2.SelectedIndex = rand.[Next](0, ListBox2.Items.Count - 1)
Else
' its continuous play so play next song
If Listbox1.SelectedIndex + 1 <= Listbox1.Items.Count - 1 Then
If ListBox2.SelectedIndex + 1 <= ListBox2.Items.Count - 1 Then
' it means we are not playing the last song in the list so you can tell it to move to the next one
Listbox1.SelectedIndex = Listbox1.SelectedIndex + 1
ListBox2.SelectedIndex = ListBox2.SelectedIndex + 1
Else
' it's the last song in the list so either move to index 0 from here or stop the music completely
Listbox1.SelectedIndex = 0
ListBox2.SelectedIndex = 0
End If
End If
End If
' now when you're done deciding which song needs to be selected set the URL to currently selected item
wmp.URL = Listbox1.SelectedItem
End If
End Sub