CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2011

    Count Duplicate Items In ListBox in vb6

    Hey every one,
    I have a 2 list boxes ,command button
    My 1st listbox contains duplicated items
    so what i want is that once i press the command button,the duplicated items is counted in the 2nd listbox
    for example :
    book 4
    car 2
    door 5
    & so on
    so plz if anyone can has any idea ,plz help

  2. #2
    Join Date
    Jan 2006
    Fox Lake, IL

    Re: Count Duplicate Items In ListBox in vb6

    Break it down into steps. If something doesn't work, post the code.

    Loop thru one listbox, into a SORTED listbox, to be able to count items

    Try a flexgrid for more than one column. Better than concatenating results, which you'd have to do

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Oct 2011

    Re: Count Duplicate Items In ListBox in vb6

    Thank you for your help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.