Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. MP3 Playlist

MP3 Playlist

Scheduled Pinned Locked Moved Visual Basic
csharphelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Indra PR
    wrote on last edited by
    #1

    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 -

    P 1 Reply Last reply
    0
    • I Indra PR

      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 -

      P Offline
      P Offline
      plural
      wrote on last edited by
      #2

      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

      P 1 Reply Last reply
      0
      • P plural

        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

        P Offline
        P Offline
        plural
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups