Click to See Complete Forum and Search --> : Select item in listbox via code
rockies1
June 15th, 2001, 11:38 AM
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!
phunkydude
June 15th, 2001, 11:56 AM
The easiest way to do this is to set the listview's text property to the item you want selected.
rockies1
June 15th, 2001, 11:58 AM
I'll give that a try, thank you!
John G Duffy
June 15th, 2001, 12:56 PM
ListView1.ListItems(5).Selected = true
ListView1.SetFocus
(5) is the row to be selected. YOu cold also use a KEY if present
John G
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.