CheckListBox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • obrienkev
    New Member
    • May 2007
    • 63

    CheckListBox

    Hi all,

    How do I mark an item in a checklistbox as checked based on a condition?

    e.g.

    Code:
    if(x=1)
    {
      // SET a ChecklistBox Item as Checked
    }
  • SammyB
    Recognized Expert Contributor
    • Mar 2007
    • 807

    #2
    Originally posted by obrienkev
    Hi all,

    How do I mark an item in a checklistbox as checked based on a condition?

    e.g.

    Code:
    if(x=1)
    {
    // SET a ChecklistBox Item as Checked
    }
    The CheckedListBox has SetItemChecked and SetItemCheckSta te methods for this. It's not obvious.

    Comment

    • dip_developer
      Recognized Expert Contributor
      • Aug 2006
      • 648

      #3
      Originally posted by obrienkev
      Hi all,

      How do I mark an item in a checklistbox as checked based on a condition?

      e.g.

      Code:
      if(x=1)
      {
        // SET a ChecklistBox Item as Checked
      }
      if(x=1)
      {
      CheckListBox1.S etItemChecked(I temIndex,true)
      }

      Comment

      • obrienkev
        New Member
        • May 2007
        • 63

        #4
        Yup that's it. Cool. Thanks guys.

        Comment

        Working...