-
Apr 15th, 2006, 10:21 PM
#1
Thread Starter
Addicted Member
[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.
-
Apr 16th, 2006, 12:09 PM
#2
Re: I want to write an mp3 player...
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
-
Apr 16th, 2006, 02:03 PM
#3
Thread Starter
Addicted Member
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.
-
Apr 16th, 2006, 03:06 PM
#4
Re: I want to write an mp3 player...
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
-
Apr 16th, 2006, 03:21 PM
#5
Thread Starter
Addicted Member
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.
-
Apr 16th, 2006, 03:35 PM
#6
Re: I want to write an mp3 player...
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
-
Apr 16th, 2006, 04:02 PM
#7
Thread Starter
Addicted Member
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)
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
|