Results 1 to 5 of 5

Thread: [RESOLVED] Listbox Playlist

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2009
    Posts
    124

    Resolved [RESOLVED] Listbox Playlist

    Hello All,

    I have a form with a Listbox.
    In the listbox is a list of files in a certain directory with one extension (*.mp3)

    I'm using this code for that:

    Code:
           
            Dim folderInfo As New IO.DirectoryInfo("C:\Windows")
            Dim arrFilesInFolder() As IO.FileInfo
            Dim fileInFolder As IO.FileInfo
    
            arrFilesInFolder = folderInfo.GetFiles("*.mp3")
            For Each fileInFolder In arrFilesInFolder
                Listbox1.Items.Add(fileInFolder.Name)
            Next
    So what i want is that the form plays the files in the Listbox like a playlist.

    "\songs\1.mp3" are just examples, it also has to work with different names.
    Code:
    Player1.URL = Application.StartupPath & "\songs\1.mp3" is for example the first one
     and "\songs\2.mp3" the next, etc... And when 1.mp3 is finished playing 2.mp3 starts, and so 
    on. And i also need to be able to hit the Play button to start a song you selected, and start 
    playing from there. And a pause button to pause, and a stop button to stop.
    Thanks in Advance,

    TooLongName
    Last edited by TooLongName; Mar 11th, 2010 at 01:35 PM. Reason: Edit...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width