Thank you very much for the help. I have another question. Can I make a playlist that can add file or remove them through commands or there's only importing a playlist for wmp?
This is my code. The file path name is giving me an error "Unable to cast object of type 'System.String' to type 'WMPLib.IWMPMedia."
Any help or advise please. Thank you..
This is my code. The file path name is giving me an error "Unable to cast object of type 'System.String' to type 'WMPLib.IWMPMedia."
Any help or advise please. Thank you..
VB.NET:
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim playList = Me.AxMediaPlayer1.newPlaylist("playList1", "")
AxmediaPlayer1.currentPlaylist = playList
AxMediaPlayer1.currentPlaylist.appendItem("C:\Documents and Settings\Administrator\Desktop\test.wmv")
AxMediaPlayer1.Ctlcontrols.play()
AxMediaPlayer1.settings.setMode("Loop", True)
End Sub
Last edited by a moderator: