Results 1 to 2 of 2

Thread: [RESOLVED] checklistbox indexes

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2003
    Posts
    193

    Resolved [RESOLVED] checklistbox indexes

    This sounds simple, but I am missing it. I know how to check for the items selected by using the selecteditems collection, BUT, I want the index of the selected item.
    for example, if have 12 months in checklistbox. The user clicks June and July,
    I just want the index value 5 & 6, not the text value..

    Thaks

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: checklistbox indexes

    Code:
            For Each i As Integer In CheckedListBox1.CheckedIndices
                MessageBox.Show(i.ToString & " index is selected")
            Next

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