trying to get windows media player to play selected song on button click

Blake81

Well-known member
Joined
Feb 23, 2006
Messages
304
Location
Georgia, USA
Programming Experience
1-3
I have a variable declared as a Windows Media Player and I am trying to get it to play whatever song I have selected in a listbox when I click a button. The problem I'm having is trying to get it to stop playing the current song if I select another one and click the button while a song is playing. I tried myplayer.close and myplayer.controls.stop, but it still plays the second song while the first is still playing. What can I do about this? It seems like one of those things I tried should have worked.
 
Back
Top