Results 1 to 7 of 7

Thread: [RESOLVED] I want to write an mp3 player...

  1. #1

    Thread Starter
    Addicted Member zahadumy's Avatar
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    187

    Resolved [RESOLVED] I want to write an mp3 player...

    Actually, I don't need a real mp3 player, I just want to be able to select an mp3 file using an OpenFileDialog and to display a progress bar while the file is playing. And also, just play, pause and stop buttons and a volume control slider. I saw some other threads about mp3 players, but no example. How do I actually open an mp3 file? If you have an example or some links, I would be very grateful. Thank you.
    The first step in solving a problem is to define the problem clearly.

    -----
    Icons | EZIconConverter | Popup Messages
    101 samples: 2003 2005
    Code converter: C# -> VB .NET | VB .NET -> C# | VB .NET <-> C#


    -----
    Visual Studio 2005/.NET Framework 2.0

  2. #2
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: I want to write an mp3 player...

    Quote Originally Posted by zahadumy
    Actually, I don't need a real mp3 player, I just want to be able to select an mp3 file using an OpenFileDialog and to display a progress bar while the file is playing. And also, just play, pause and stop buttons and a volume control slider. I saw some other threads about mp3 players, but no example. How do I actually open an mp3 file? If you have an example or some links, I would be very grateful. Thank you.
    Hi,

    Here's a link about mp3 player and play, pause, pause and stop control buttons;

    http://www.developerfusion.co.uk/show/62

    I hope it's a start,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  3. #3

    Thread Starter
    Addicted Member zahadumy's Avatar
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    187

    Re: I want to write an mp3 player...

    Building the Form
    To begin, create a standard Visual Basic project. Next, select Projects | Components from the menu bar, and select Windows Media Player in the resulting dialog box. Click OK to add the component to your project. Now, select it from the Toolbox and drop it onto the default form.
    This is how I should be able to get started... First of all, I don't have "Projects" in the menu bar, I have "Project" instead... And in this menu I have "Add component" and not "Components", and there I can't find the Windows Media Player component... I have VS 2005... I don't know if I do something wrong or... :-/ Thank you.
    The first step in solving a problem is to define the problem clearly.

    -----
    Icons | EZIconConverter | Popup Messages
    101 samples: 2003 2005
    Code converter: C# -> VB .NET | VB .NET -> C# | VB .NET <-> C#


    -----
    Visual Studio 2005/.NET Framework 2.0

  4. #4
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: I want to write an mp3 player...

    Quote Originally Posted by zahadumy
    This is how I should be able to get started... First of all, I don't have "Projects" in the menu bar, I have "Project" instead... And in this menu I have "Add component" and not "Components", and there I can't find the Windows Media Player component... I have VS 2005... I don't know if I do something wrong or... :-/ Thank you.
    Hi,

    I' could be a little how they explained, but if you select project in the MenuBar -> Add Reference -> select Com -> searh for Windows Media Player and you'll find , select and you can continiung your app.

    Wkr,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  5. #5

    Thread Starter
    Addicted Member zahadumy's Avatar
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    187

    Re: I want to write an mp3 player...

    I have found there an .ocx file (I suppose that's the one I'm looking for) and a few dll files with the name "Windows Media Player". Anyway, I added all of them to my project, but I can't find anything like "Windows Media Player" in the toolbox, like they say... Thank you for your patience and I apologise if I am a little bit stupid... Thank you.
    The first step in solving a problem is to define the problem clearly.

    -----
    Icons | EZIconConverter | Popup Messages
    101 samples: 2003 2005
    Code converter: C# -> VB .NET | VB .NET -> C# | VB .NET <-> C#


    -----
    Visual Studio 2005/.NET Framework 2.0

  6. #6
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: I want to write an mp3 player...

    Quote Originally Posted by zahadumy
    I have found there an .ocx file (I suppose that's the one I'm looking for) and a few dll files with the name "Windows Media Player". Anyway, I added all of them to my project, but I can't find anything like "Windows Media Player" in the toolbox, like they say... Thank you for your patience and I apologise if I am a little bit stupid... Thank you.
    Hi,

    I think they mean that you have to download the controle into your ToolBox.

    Here's the link how to do it:

    http://msdn2.microsoft.com/en-us/library/ms165358.aspx

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  7. #7

    Thread Starter
    Addicted Member zahadumy's Avatar
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    187

    Re: I want to write an mp3 player...

    I managed to add the control on the form. I think I can do this from here. Thank you very much for the link and for your help. Good night (if it's night where you live)
    The first step in solving a problem is to define the problem clearly.

    -----
    Icons | EZIconConverter | Popup Messages
    101 samples: 2003 2005
    Code converter: C# -> VB .NET | VB .NET -> C# | VB .NET <-> C#


    -----
    Visual Studio 2005/.NET Framework 2.0

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