Listbox with '1-checkbox' option... vb6

List1.ListIndex = -1     '<-- takes away the highlight from current selection (leaving its checked unchecked)
List1.<I need code to uncheck the selection as well>    '<-- there will be one selection

List1.Selected(2) = True   '<-- works fine, highlights and checks its checkbox

----------
Question:  How can I get rid of the check for the old item.

Thanks.
LVL 34
Mike EghtebasDatabase and Application DeveloperAsked:
Who is Participating?
 
bingieConnect With a Mentor Commented:
List1.Selected(index) = False

Will uncheck the old item, when you provide the correct index
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.