Library code snippets
MP3 Player
By Edgar Sanchez, published on 12 Jan 2003
This project develops on a previously posted project for creating an MP3 Player using Microsoft's Media Player OCX. I have added five modules (.bas) to save the list of MP3 songs whenever the user modifies the listbox. When the main form (frmMain) loads, the listbox is populated from a text file that contains the song list previously saved. To clean up the main interface a little bit, I also added a form to edit the MP3 tag and another form to pick the directory where the MP3 files may be located.
Where appropriate, I gave credit to all the websites where I got sample code to do many of the tasks I wanted to do.
- Some features and VB techniques used are:
- Random Function to play random songs; methods to Add, delete, and clear a listbox' contents;
- Control Master Windows Volume via API call;
- Open a text file for input and output;
- Read contents/lines from text file;
- Load a Picture from a file into ImageBox;
- Popup Menus;
- Drag and Drop Files into Listbox from Windows Explorer via API;
- Controlling Media Player to play next, previous, and stop current song.
Related articles
Related discussion
-
Key_Press() event for text box
by Aquila (1 replies)
-
Rename all kind of files and medias!
by jakefrog (0 replies)
-
Regarding Visual Basic Programme
by manjunathsl2007 (0 replies)
-
how do you hide all in VB6
by CapnJack (1 replies)
-
Problem with Input File
by novavb6 (3 replies)
I like the idea of the mp3 player i have created many with in my years as a vb programmer the one thing i think you should work on is a error handler. to put it simplie you program is bugie
This thread is for discussions of MP3 Player.