Results 1 to 5 of 5

Thread: Windows Media Player Control

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2002
    Location
    Ohio
    Posts
    43

    Smile 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!

  2. #2
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    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:
    1. Private Sub Command1_Click ()
    2. me.WindowsMediaPlayer1.url="C:/MyMusic/Music.mp3"
    3. end Sub

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2002
    Location
    Ohio
    Posts
    43

    Re: Windows Media Player Control

    Thanks a bunch. Much appreciated!

  4. #4
    Fanatic Member Nove's Avatar
    Join Date
    Jul 2004
    Posts
    736

    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?

  5. #5
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    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
  •  



Click Here to Expand Forum to Full Width