1,105,177 Community Members

Remove song from Windows Media Player Playlist...

Member Avatar
killbill07
Newbie Poster
17 posts since Oct 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

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()

Member Avatar
killbill07
Newbie Poster
17 posts since Oct 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
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.

Question Self-Answered as of 3 Years Ago
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: