tot = 1
Open Me.CdMusic.FileName For Input As #1
While Not EOF(1)
Input #1, judul
For d = 1 To Len(judul)
If Mid(judul, d, 1) = "|" Then
g=d
Exit For
End If
Next d
Set l = Me.Playlist.ListItems.Add(, , Left(judul, g - 1))
l.SubItems(1) = Right(judul, Len(judul) - g)
tot = tot + 1
Wend
Close #1
End If
Me.CdMusic.FileName = ""
End Sub
End Sub
Sub PlayMusic()
For i = 1 To Me.Playlist.ListItems.Count
Me.Playlist.ListItems(i).ForeColor = vbBlack
Next i
Me.MpMusic.Open Me.Playlist.ListItems(IndexLagu).SubItems(1)
Me.MpMusic.currentPosition = 0
Me.Playlist.ListItems(IndexLagu).ForeColor = vbBlue
Me.slDurasi.Min = 0
Me.Timer1.Enabled = True
End Sub