Hello everyone! i'm working on a project that takes the path of a playlist from a ms common dialog control then it have to give the name of each track and its duartion....
i succeeded to take the path... and i wrote a code that gives the name and the duration, but the problem is when i set the windows media player URL properties to the path of the palylist it works.. but when i set it in the code it gives only the name of the first track and its duration....
this is my code and i attached the prog to understand more my problem:
Dim caption1 As String
Dim caption2 As String
Dim var As Integer
Dim i As Byte
var = WindowsMediaPlayer1.currentPlaylist.Count
For i = 0 To var - 1
caption1 = WindowsMediaPlayer1.currentMedia.durationString
caption2 = WindowsMediaPlayer1.currentMedia.Name
Label3(i).Caption = caption1
Label4(i).Caption = caption2
WindowsMediaPlayer1.Controls.Next
Next i