how do i get the next song to play after the last song has finished in vb08?
hi i need help I'm making a media player and i cant get the next song to play in a list i9t goes down and highlights the next song but it doesn't play it here is a copy of the code snippet
Private Sub AxWindowsMediaPlayer1_PlayStateChange(ByVal sender As_ Object, ByVal e As AxWMPLib._WMPOCXEvents_PlayStateChangeEvent)_ Handles AxWindowsMediaPlayer1.PlayStateChange
If AxWindowsMediaPlayer1.playState =_ WMPLib.WMPPlayState.wmppsMediaEnded Then
If imglist.SelectedIndex < imglist.Items.Count - 1 Then
imglist.SelectedIndex = imglist.SelectedIndex + 1
Else
imglist.SelectedIndex = 0
End If
End If
AxWindowsMediaPlayer1.Ctlcontrols.playnextitem()
End Sub
any help would be appreciated thanks
|