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:
So what i want is that the form plays the files in the Listbox like a playlist.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
"\songs\1.mp3" are just examples, it also has to work with different names.
Thanks in Advance,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.
TooLongName




Reply With Quote