Problem in vb.net
Posted: Tue Jun 10, 2008 3:52 pm
Ok so im making a program all it is is a music player,ok so i made it so when i click add folder it will add the music in that folder and show the name,lenght,artist,album, and year in the listview for all songs
and when i click to play a song it works but then when i click another song
i get an error (it dosnt matter witch song)the error says
and this is what im using for code that messes up
ik that part is easy
and when i click to play a song it works but then when i click another song
i get an error (it dosnt matter witch song)the error says
and what im doing is making the music player read the selected items tooltip(because it shows full filename)InvalidArgument=Value of '0' is not valid for 'index'.
Parameter name: index
and this is what im using for code that messes up
Code: Select all
Me.AxQTControl1.FileName = lv.SelectedItems.Item(0).ToolTipText