Results 1 to 3 of 3

Thread: How to use the checklistbox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Posts
    115

    How to use the checklistbox

    Hi all,

    I am trying to use the checklistbox in my program. I can add, remove an item. But how to retrieve an item later on ? Can someone show me an example code ? thx.

  2. #2
    Hyperactive Member Bananafish's Avatar
    Join Date
    Jan 2001
    Posts
    394
    This example does something with all boxes that are checked - does this answer the question?

    VB Code:
    1. Dim intX As Int32
    2.       lblTaskDesc.Text = ""
    3.       For Each intX In CheckedListBox1.CheckedIndices
    4.          lblTaskDesc.Text &= CheckedListBox1.Items.Item(intX).ToString
    5.       Next

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Posts
    115
    Exactly what i need. Thank you so much.

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