How do you select an item in a listbox using code?
I have an app that adds items to the listbox and I need to select that item.
Thanks!
Printable View
How do you select an item in a listbox using code?
I have an app that adds items to the listbox and I need to select that item.
Thanks!
The easiest way to do this is to set the listview's text property to the item you want selected.
I'll give that a try, thank you!
ListView1.ListItems(5).Selected = true
ListView1.SetFocus
(5) is the row to be selected. YOu cold also use a KEY if present
John G