Remove song from Windows Media Player Playlist...
Hey it's me again, I need some help with WMP control, because i was trying to remove an item (I have a listbox wich has songlist for playing and a button). I wanna remove the selected song in the listbox from the playlist, but I don't know how to use windowsmediaplayer1.currentPlaylist.removeItem()
Related Article: accessing other windows using VB
is a Visual Basic 4 / 5 / 6 discussion thread by vineeth5march19 that has 3 replies, was last updated 3 years ago and has been tagged with the keywords: access, vb, windows.
killbill07
Newbie Poster
17 posts since Oct 2010
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0
I found the solution, is very simple, more than i thought it would be.
All we have to do is...
Dim orange as object
set orange=windowsmediaplayer1.currentplaylist.item(List1.ListIndex)
windowsmediaplayer1.currentplaylist.removeitem(orange)
That's all.
I hope that it works for anybody else that need it.
killbill07
Newbie Poster
17 posts since Oct 2010
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0
Question Self-Answered as of 2 Years Ago