|
-
Mar 17th, 2005, 02:52 PM
#1
Thread Starter
Member
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!
-
Mar 17th, 2005, 05:14 PM
#2
Fanatic Member
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
-
Mar 17th, 2005, 05:31 PM
#3
Thread Starter
Member
Re: Windows Media Player Control
Thanks a bunch. Much appreciated!
-
Mar 17th, 2005, 05:34 PM
#4
Fanatic Member
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?
-
Mar 17th, 2005, 06:27 PM
#5
Fanatic Member
Re: Windows Media Player Control
heres the link i made to a windows media control program i made to explain my point
Last edited by dark_shadow; Mar 17th, 2005 at 06:36 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|