Results 1 to 2 of 2

Thread: [2005] Checkedlistbox

  1. #1

    Thread Starter
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Smile [2005] Checkedlistbox

    Hi all,
    I am using this function to get the selected items from the listbox.
    Code:
    Private Sub getListboxids(ByVal lst As CheckedListBox)
            Dim lstitems(lst.SelectedItems.Count - 1) As String
            lst.SelectedItems.CopyTo(lstitems, 0)
        End Sub
    Is there any other way avl to get the selected values other than looping through the selected items collections


    Thanks in advance
    Dana
    Please mark you thread resolved using the Thread Tools as shown

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [2005] Checkedlistbox

    Quote Originally Posted by danasegarane
    Is there any other way avl to get the selected values other than looping through the selected items collections
    Not that I know of.

    When you have a whole lot of items, and some of the are selected and some are not, the only way of finding out which is which is to check them all.

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