MP3 Playlist
-
Hello all, this is my first posting in codeproject. Does anyone know how to make mp3 playlist like winamp playlist... Need help... >_< The concept is just the same as winamp, we can add song with the add button, then the song will appear in the list. Some forum said that I should use datagrid component in vb.net, but I don't know what to do with that thing. Don't know how to add data to the datagrid, etc. lol. I still don't know how to use MSDN help. T-T Heeeeelllp... X|
- No Signature Available -
-
Hello all, this is my first posting in codeproject. Does anyone know how to make mp3 playlist like winamp playlist... Need help... >_< The concept is just the same as winamp, we can add song with the add button, then the song will appear in the list. Some forum said that I should use datagrid component in vb.net, but I don't know what to do with that thing. Don't know how to add data to the datagrid, etc. lol. I still don't know how to use MSDN help. T-T Heeeeelllp... X|
- No Signature Available -
it depends on the format you want, but if you want to use the universal .m3u playlist format read and learn something about collections but just use these codes...its a real bad programming practice, not that, but it works Dim sr As IO.StreamWriter = IO.File.CreateText(Application.StartupPath & "\Playlists\" + TextBox1.Text + ".m3u") sr.WriteLine("#EXTM3U") lstItems = ListView1.Items.Count - 1 For i = 0 To lstItems 'ext = System.IO.Path.GetExtension(CStr(ListView1.Items(i).SubItems(0).Text)) 'w = CStr(ListView1.Items(i).SubItems(0).Text + ext) sr.WriteLine(CStr(ListView1.Items(i).SubItems(1).Text)) Next sr.Close() sr = Nothing w = Nothing do u understand the codes...i used directx to do a music player and a dj soft try this out
phatkin
-
it depends on the format you want, but if you want to use the universal .m3u playlist format read and learn something about collections but just use these codes...its a real bad programming practice, not that, but it works Dim sr As IO.StreamWriter = IO.File.CreateText(Application.StartupPath & "\Playlists\" + TextBox1.Text + ".m3u") sr.WriteLine("#EXTM3U") lstItems = ListView1.Items.Count - 1 For i = 0 To lstItems 'ext = System.IO.Path.GetExtension(CStr(ListView1.Items(i).SubItems(0).Text)) 'w = CStr(ListView1.Items(i).SubItems(0).Text + ext) sr.WriteLine(CStr(ListView1.Items(i).SubItems(1).Text)) Next sr.Close() sr = Nothing w = Nothing do u understand the codes...i used directx to do a music player and a dj soft try this out
phatkin
create a txt file with the format .m3u the write the first line as sr.WriteLine("#EXTM3U") then write the location of all the songs in the playlist the save it..u can even open with VLC or windows media player but its a real bad practise so go and read on collections
phatkin