Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / April 2006

Tip: Looking for answers? Try searching our database.

Removing duplicates from a listbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Noble Bell - 27 Apr 2006 18:16 GMT
Hello,

Is there a quick and easy way to take a listbox of elements and search and
remove any duplicates before displaying the listbox to the user?

------------------------------------------
Noble D. Bell
AgForest Partners, Inc.
<ctacke/> - 27 Apr 2006 19:20 GMT
If it's sorted, yes, if not, then it's a process of iterating through the
list.  It would be far better and simpler if you prevented duplicates when
you add the items.

-Chris

> Hello,
>
[quoted text clipped - 4 lines]
> Noble D. Bell
> AgForest Partners, Inc.
Noble Bell - 27 Apr 2006 19:32 GMT
I would love to be able to do that but my sql query will not allow me to use
DISTINCT. I have to much going on for that to work properly.

------------------------------------------
Noble D. Bell
AgForest Partners, Inc.

> If it's sorted, yes, if not, then it's a process of iterating through the
> list.  It would be far better and simpler if you prevented duplicates when
[quoted text clipped - 10 lines]
> > Noble D. Bell
> > AgForest Partners, Inc.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.