Windows Media Player Control
I need some help or possible code example. I am trying to create a jukebox type program in VB6. I have it set up to where my first form has several command buttons where each will open another form for a specific CD/Album stored on my hard drive and on this second form I will have a list of the songs (mp3 files). I would like to use the Windows Media Player control for each song, however this is my first time using this control and I have no experience. I'm not sure even how to code this and have tried a couple different things but so far it just shows the Media Player control but the play/stop etc. buttons are grayed out and I am lost at this point. I have heard that this is supposedly fairly simple to use but I am stuck. If anyone has any advice I would really appreciate it. Thanks in advance! :wave:
Re: Windows Media Player Control
to use the windows media player controls the songs or sound you trying to play is considered a url to play a song it needs the url of the song heres an example of what i mean involving a command button and a windows media player control
VB Code:
Private Sub Command1_Click ()
me.WindowsMediaPlayer1.url="C:/MyMusic/Music.mp3"
end Sub
Re: Windows Media Player Control
Thanks a bunch. Much appreciated! :thumb:
Re: Windows Media Player Control
Maybe I'm just confused, but i've always used .filename with the media player control, and just now .url doesn't seem to be a usable method. Are we talking about the same thing?
Re: Windows Media Player Control
heres the link i made to a windows media control program i made to explain my point