Re: SetFocus!



"Phill. W" <P.A.Ward@xxxxxxxxxxxxxxxxxxx> wrote in message
news:di64bq$aji$1@xxxxxxxxxxxxxxxxx
> "Arpan" <arpan_de@xxxxxxxxxxx> wrote in message
> news:1128695676.999279.242310@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> For e.g. when "5" gets added to the ListBox, "5" should be
>> highlighted/selected. Next when "2" gets added to the ListBox
>> (below "5"), "2" should be highlighted/selected.
>> How do I do this?
>
> ' List1.AddItem( "2" )
> List1.ListIndex = List1.NewIndex

Yep, I stopped reading at "highlighted" and missed "selected"

--
Reply to the group so all can participate
VB.Net: "Fool me once..."

.