I have a listbox which populates fine and allows me to select an item, but I can not get the text from that item.
Code:
Debuging the code it next gets to the do something line i.e. myListbox.Selected(i) never seems to be true in the watch it seems to always have value 0. Any ideas why?
Code:
Code:
For i = 0 To myListbox.ListCount - 1
If myListbox.Selected(i) Then
'do something
End If
Next i
Debuging the code it next gets to the do something line i.e. myListbox.Selected(i) never seems to be true in the watch it seems to always have value 0. Any ideas why?
Last edited by a moderator: