|
|
Title | Select newly added items in a ListBox |
Keywords | |
Categories | Controls |
|
|
After adding the item, use the ListBox's NewIndex property to get the new item's
index. Then set Selected True for that index.
|
|
' Add the new item.
lstItems.AddItem txtNewItem.Text
' Select the new item.
lstItems.Selected(lstItems.NewIndex) = True
|
|
|
|
|
|