if you have a list box with music in them how do you have it advance to the next one down to the next song when the one is over?
lee123
lee123
Private Sub List1_Click()
WindowsMediaPlayer1.URL = List1.Text
List1.ListIndex 1
End Sub
Private Sub List1_Click()
WindowsMediaPlayer1.URL = List1.Text
List1.ListIndex + 1
End Sub
Private Sub WindowsMediaPlayer1_StatusChange()
If WindowsMediaPlayer1.Status = "finished" Then
WindowsMediaPlayer1.URL = List1.Text
List1.ListIndex = List1.ListIndex + 1
End If
End Sub
Private Sub WindowsMediaPlayer1_StatusChange()
If WindowsMediaPlayer1.Status = "finished" Then
List1.ListCount
List1.ListIndex = List1.ListIndex + 1
WindowsMediaPlayer1.URL = List1.List(List1.ListIndex)
End If
End Sub
Private Sub List1_Click()
WindowsMediaPlayer1.URL = List1.Text
List1.ListCount
End Sub
runtime error '380' invalid property value
Private Sub WindowsMediaPlayer1_StatusChange()
If WindowsMediaPlayer1.Status = "Finished" Then
List1.ListIndex = List1.ListIndex + 1
WindowsMediaPlayer1.URL = List1.List(List1.ListIndex)
List1.ListIndex = List1.ListCount + 1
End If
On Error Resume Next
Private Sub WindowsMediaPlayer1_StatusChange()
If WindowsMediaPlayer1.Status = "Finished" And List1.ListIndex < (List1.ListCount - 1) Then
List1.ListIndex = List1.ListIndex + 1
WindowsMediaPlayer1.URL = List1.List(List1.ListIndex)
End If
End Sub
Private Sub List1_Click()
If List1.ListIndex < (List1.ListCount - 1) Then
List1.ListIndex = List1.ListIndex + 1
End If
WindowsMediaPlayer1.URL = List1.Text
End Sub
Private Sub Add_Click()
MyPlayList.AddItem Combo1.Text & "" & Text1.Text
End Sub
Private Sub cmdClear_Click()
MyPlayList.Clear 'To clear the Play list
Text1.Text = ""
End Sub
Private Sub cmdNext_Click()
MyPlayList.ListIndex = MyPlayList.ListIndex + 1 'This for to scroll down to the next one
End Sub
Private Sub cmdPrevious_Click()
MyPlayList.ListIndex = MyPlayList.ListIndex - 1 'This is to scroll to the previous one up
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_Click()
Text1.Text = File1
End Sub
Private Sub MyPlayList_Click()
WindowsMediaPlayer1.URL = MyPlayList.List(MyPlayList.ListIndex)
End Sub
Private Sub WindowsMediaPlayer1_PlaylistChange(ByVal Playlist As Object, ByVal change As WMPLibCtl.WMPPlaylistChangeEventType)
If MyPlayList.ListIndex = (MyPlayList.ListCount - 1) Then
WindowsMediaPlayer1_StatusChange
End If
End Sub
Private Sub WindowsMediaPlayer1_StatusChange()
On Error Resume Next
Dim Answer As Integer
If WindowsMediaPlayer1.Status = "Finished" Then
Answer = MsgBox("Shall I Continue?", vbQuestion + vbYesNo, "Continue?")
If Answer <> vbYes Then End
MyPlayList.ListIndex = MyPlayList.ListIndex + 1
WindowsMediaPlayer1.URL = MyPlayList.List(MyPlayList.ListIndex)
End If
End Sub
Comment