Hi,
Im using a listbox to display a few things from a database. The style is "checkbox" and i would like to know how to check if the checkboxes are checked. Whats the command to see if the boxes are checked in a listbox?
Printable View
Hi,
Im using a listbox to display a few things from a database. The style is "checkbox" and i would like to know how to check if the checkboxes are checked. Whats the command to see if the boxes are checked in a listbox?
If List1.Selected(List1.ListIndex) = True Then MsgBox List1.Text
Code:For n = 1 to List1.ListCount
If List1.Selected(n) = True Then
'wow.. item n in the list box is checked!
'Todo: Add code here
End If
Next n
hope that helps!!
That was exactly what i was after! Thank you very much!