02-22-2011, 09:21 AM
hello, i need help with this code here
this code should get the playlists that you created and then show them in a listbox but it gives me an error i would need some help with it
this code should get the playlists that you created and then show them in a listbox but it gives me an error i would need some help with it
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim direc = "C:\Users\Admin\Documents\Visual Studio 2010\Projects\Xpress Player\Xpress Player\bin\Debug\playlists"
For Each directory As String In System.IO.Directory.GetDirectories(direc)
ListBox2.Items.Add(directory)
Next
End Sub