I have a list box which gets new items added to it by a command button (or drag and drop).
I want the item that has just been just added to be highlighted(selected).
Is there a way to highlight an item through code??
Tahnks.
Danny.
Printable View
I have a list box which gets new items added to it by a command button (or drag and drop).
I want the item that has just been just added to be highlighted(selected).
Is there a way to highlight an item through code??
Tahnks.
Danny.
Try this, asssuming you're always appending to the end of the list:
List1.Selected(List1.ListCount - 1) = True
The simplest way is .. .
List1.ListIndex = List1.NewIndex
and it describes itself what it will do.