This is a discussion on Counting identical items in listbox within the Visual Basic Tutorials forums, part of the Articles and Tutorials category; Is there a way to count identical items in a listbox ? VB 2005.net...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| javascript - display items in listbox matching the keys pressed | sansircar | Microsoft .NET | 0 | 02-05-2007 04:55 PM |