|
-
June 15th, 2001, 11:38 AM
#1
Select item in listbox via code
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!
-
June 15th, 2001, 11:56 AM
#2
Re: Select item in listbox via code
The easiest way to do this is to set the listview's text property to the item you want selected.
-
June 15th, 2001, 11:58 AM
#3
Re: Select item in listbox via code
I'll give that a try, thank you!
-
June 15th, 2001, 12:56 PM
#4
Re: Select item in listbox via code
ListView1.ListItems(5).Selected = true
ListView1.SetFocus
(5) is the row to be selected. YOu cold also use a KEY if present
John G
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|