hi, i am making a program that selects all items in a listbox with checkbox style. The problem is when i clcik the button, in one list 4 items stay highlighted at the bottom with blue, and the otherlist, all items in view stay highlighted with blue. It doesnt affect performance, but doesnt look very good. here is the code.both lists use the same code.VB Code:
Dim i As Long For i = 0 To List1.ListCount - 1 List1.Selected(i) = True Next
also how can i have the first item in the list have focus after that?




Reply With Quote