Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
need help with my music player:)
#1
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 itSmile

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
#2
Can you tell us the error it makes?
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailtoTongueatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
[Image: 2hnx8av.jpg]
#3
Yeah, what is the error?
My Blog | My Setup | My Videos | Have a wonderful day.
#4
this is the error

Items collection cannot be modified when the DataSource property is set.

and i just want the get the name of the folder/Playlists
not the path <!-- sBig Grin --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="Big Grin" title="Very Happy" /><!-- sBig Grin -->


Forum Jump:


Users browsing this thread: 1 Guest(s)