Link to home
Start Free TrialLog in
Avatar of nguyenn
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
ASKER CERTIFIED SOLUTION
Avatar of JonFish85
JonFish85

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nguyenn
nguyenn

ASKER

Thanks JonFish, it works

Have a nice day :)
glad I could help!