PDA

Click to See Complete Forum and Search --> : Help with a LISTBOX ...


bgalm
Jan 3rd, 2000, 02:32 PM
Hello,
After reading in a list of items to my listbox (with checkboxes enabled). How can I make it so they can't uncheck the boxes, but still be able to double-click on the listed item and run my code underneath ?
Thanks,

MartinLiss
Jan 3rd, 2000, 10:35 PM
This will do it.Private Sub List1_Click()

If List1.Selected(List1.ListIndex) = False Then
List1.Selected(List1.ListIndex) = True
End If

End Sub


------------------
Marty