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

Thread: List Box

  1. #1
    Join Date
    Aug 1999
    Posts
    2

    List Box

    I need to be able to filter a listbox for check box that are marked. Then expand back again. Anybody have any code to do this??


  2. #2
    Join Date
    Aug 1999
    Posts
    2

    Re: List Box Filter based on Checked

    Just wanted to change the subject name for this one


  3. #3
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: List Box

    Look for Selected property.
    with something like this
    for ii = 0 to List1.Count -1
    if list1.Selected(ii) = true then
    ' if you have Check boxes style, it will automatically be
    ' multiple select.
    index ii is selected.
    end if
    next ii

    For filtering i would go for 2 list boxes. Have all the original strings in one and then copy all the selected strings into other and display at the same place!. A small flicker would be there, hope it is not annoying!!
    Or you can maintain your own list of strings selected/all and add to the list box.

    Ravi Kiran

    Life is a comedy for those who think and a tragedy for those who feel

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured