Library code snippets
MP3 Player
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
-
Build an MP3 Player
by Jameson (0 replies)
-
VB6 Runtime error 381 subsript out of range Error
by Uncle (2 replies)
-
passing and reading parameters from using Shell
by jigartoliya (0 replies)
-
4Ways convert video to FLV./MP3/MP4/3GP
by dvdmm (18 replies)
-
Convert C++ code to VB6
by mawcot (4 replies)
Related podcasts
-
Christian Beauclair
14 mai 2008 (�mission #0074) ::.Christian Beauclair: Stratégies de migration VB6 vers .NET Nous discutons avec Christian Beauclair des stratégies de migration VB6 vers .NET. Entre autres, nous discutons comment utiliser le "VB 6 Code Advisor" et le "Interop Forms Toolkit" pour ajouter la puiss...
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.