Results 1 to 4 of 4

Thread: Mediaplayer and listbox

  1. #1
    Guest

    Question

    I am designing an MP3 player using windows mediaplayer. I have a listbox for a playlist that contains paths to mp3's. Want I want to do is have the listbox display anything i want(eg. tag info) but when mediaplayer looks to the listbox for it's next song it will see the path to the file. Is there a way i can do this? If there is could someone lend some code? Thanks in advance.
    -=ATommasi=-

  2. #2
    Lively Member
    Join Date
    Aug 2000
    Location
    Darlington, United Kingdom
    Posts
    121
    I think the best way to do this would be to create an array that contains all the information that you need to display and then also the path location to the file..
    Do Not Underestimate The Power Of Simple VBA

    Maybe Its Just Not Possible, But Then Again What Is Impossible

  3. #3
    New Member
    Join Date
    May 2001
    Posts
    4

    Lightbulb MediaPlayer and Listbox

    Try this, change your listbox to a listview. Every time you add an item to the list, set the KEY equal to the path of the music file. Then call upon that KEY when an item is clicked. Hope this works.

  4. #4
    ATommasi
    Guest

    Talking Thanks anyway

    Well, in the six months since i posted the first message, i completly rewrote my MP3 player, not using mediaplayer anymore, or a listbox. But thanks anyway.

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