CheckListBox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steci
    New Member
    • Mar 2008
    • 2

    CheckListBox

    I'm new to VB.Net

    Can anyone tell me what i done wrong ?

    If clbSolar.Select edIndex = True Then
    lstSolar.Items. Add("5%")
    Else
    lstSolar.Items. Add("")
    End If


    on my listbox, it won't come out.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Does SelectedIndex returns a boolean value ?

    Comment

    • kuzen
      New Member
      • Dec 2006
      • 20

      #3
      try this, should work
      Code:
      if checkedlistbox.getchecked(chekedlistbox.selectedindex) then
      ...
      end if

      Comment

      Working...