nguyenn
asked on
ListBox : Highlight the first item
I have a ListBox has some items. To enable get multi selection, I set property MultiSelect = 2 (Extended) at design time. At run time, after loading my ListBox, I set default to the first item:
If (List1.ListCount > 0) Then
List1.ListIndex = 0
End If
But the above command doesnt highlight to the first record (If I set property MultiSelect = 0 (None), it hightlights)
Thanks in advance
nguyenn
If (List1.ListCount > 0) Then
List1.ListIndex = 0
End If
But the above command doesnt highlight to the first record (If I set property MultiSelect = 0 (None), it hightlights)
Thanks in advance
nguyenn
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
glad I could help!
ASKER
Have a nice day :)