View Single Post

  #2 (permalink)  
Old 03-08-2008, 05:18 AM
Guptha_S Guptha_S is offline
Member
 
Join Date: Jan 2006
Posts: 34
Guptha_S is on a distinguished road
Yes create another temp list box and add each item form actual list box to temp list box, before add check if the item is already present or not


For Each xitem In Me.somelist
If NOT (Me.templist.Items.Contains(xitem.someitemdata)) Then
Me.templist.Items.Add(xitem.someitemdata)
End If
Next

later on you can cleanup actual list and load items from temp list, keeping temp list invisible all the while

This may not be optimal method, I have given you just a method
Reply With Quote