With a ListBox this will select the next Item added.
List1.ListIndex = List1.ListIndex + 1
I was wondering How you would do this with a ListView?
for i = 1 to listview.listitems.count
listview.listitems(i).index = listview.listitems(i).index + 1
next i
Maybe that will work?
Quote from: blinkdude on November 19, 2003, 02:56 AM
With a ListBox this will select the next Item added.
List1.ListIndex = List1.ListIndex + 1
I was wondering How you would do this with a ListView?
Are you asking this because you want to know how to add an item to the end of your ListView? If so, do:
With ListView1.ListItems
.Add
.Count + 1, [key], [text], [icon], [smallicon]
End With
Edit - Removed [ code ] tag since it was interferring with style tag.
Maybe with more infromation it will help ;) Its for an Mp3 player and then "Next Song" Button Will play the Next Song in the listview...any ideas?
I believe this can be done using the item.Selected property and the SelectedItem method.
With lvwSongList
.ListItems(.SelectedItem.Index + 1).Selected = True
End With
I'm not sure if you'd have to then deselect the previously-selected item -- I think that if the listview.MultiSelect property is false you don't need to. Also, you'll need to error-trap in case the end of the list has been reached, or no items are selected.
ah thanks works!
I'll give ya 10 bucks to beat winamp2 :)
Ha! heres a ss i also added more stuff but like A Remove Load/save Lists ..You can run it wiht bot or with out...
http://eternalsoldiers.net/esbot/ss/ss7.gif
http://eternalsoldiers.net/esbot/ss/ss7.gif
Player*
Quote from: St0rm.iD on November 19, 2003, 05:26 PM
I'll give ya 10 bucks to beat winamp2 :)
I dunno if I can beat Winamp2, but Ill take that bet if you'll accept a Winamp clone ;)