Jump to content

C# . Net Media Player Help!

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
ahmed

ahmed

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 304 posts
I need help with my media player that i am making in C#.net . The only thing left is playlist . Can anyone please tell me how to use the play list option and add songs to it ?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Surely there's a component for holding and displaying a list of items, with the ability to select items on the list.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
ahmed

ahmed

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 304 posts
I know but i need a sample for a play list code :(

#4
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Why don't you use a listbox? and then on index change forward the mp3 location to the wmp control

#5
cdg10620

cdg10620

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 389 posts

ahmed said:

I know but i need a sample for a play list code :(

You will probably want to use a collection. As items are added into the playlist you will add those items to the collection. The collection can be objects that you have created. You can create a song object with all the properties needed and add those song objects to the collection. I think that would be the easiest way to do it. This can then be displayed in a list box or something similar.