Home All Groups Group Topic Archive Search About
Author
20 Jul 2006 9:21 PM
zulander
Is there a way to set a index of a item when you add ? i want to add
the item at the index 0, which mean everytime i would i it would be at
the top of the list


        Dim xitem As ListViewItem
        xitem = lv.Items.Add("HELLO")
xitem=nothing

thank you

Author
20 Jul 2006 11:08 PM
Herfried K. Wagner [MVP]
<zulan***@gmail.com> schrieb:
> Is there a way to set a index of a item when you add ? i want to add
> the item at the index 0, which mean everytime i would i it would be at
> the top of the list

You may want to use 'ListView.Items.Insert' to insert the item at a specific
position.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>