Author | Message | Time |
---|---|---|
blinkdude | With a ListBox this will select the next Item added. [code] List1.ListIndex = List1.ListIndex + 1 [/code] I was wondering How you would do this with a ListView? | November 19, 2003, 8:56 AM |
______ | [code] for i = 1 to listview.listitems.count listview.listitems(i).index = listview.listitems(i).index + 1 next i [/code] Maybe that will work? | November 19, 2003, 4:26 PM |
Spht | [quote author=blinkdude link=board=17;threadid=3701;start=0#msg30057 date=1069232176] With a ListBox this will select the next Item added. [code] List1.ListIndex = List1.ListIndex + 1 [/code] I was wondering How you would do this with a ListView? [/quote] 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. | November 19, 2003, 4:50 PM |
blinkdude | 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? | November 19, 2003, 7:35 PM |
Stealth | I believe this can be done using the item.Selected property and the SelectedItem method. [code] With lvwSongList .ListItems(.SelectedItem.Index + 1).Selected = True End With [/code] 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. | November 19, 2003, 10:11 PM |
blinkdude | ah thanks works! | November 19, 2003, 11:12 PM |
St0rm.iD | I'll give ya 10 bucks to beat winamp2 :) | November 19, 2003, 11:26 PM |
blinkdude | 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 | November 20, 2003, 6:22 AM |
Arta | Player* | November 20, 2003, 1:48 PM |
Dyndrilliac | [quote author=St0rm.iD link=board=17;threadid=3701;start=0#msg30189 date=1069284380] I'll give ya 10 bucks to beat winamp2 :) [/quote] I dunno if I can beat Winamp2, but Ill take that bet if you'll accept a Winamp clone ;) | November 20, 2003, 11:02 PM |