|
-
May 14th, 2001, 12:58 AM
#1
ListBox problem
Hi,
say if List1.List(x) is "Hello", then how to select the "Hello" in List1. By saying "Select", I mean to highlight the line "Hello" in List1. I could use List1.Text = "Hello", but what if there are multiple "Hello" lines, and I want to select all of them.
Thank You
-
May 14th, 2001, 06:08 AM
#2
Re: ListBox problem
Very simple.
write this line:
List1.ListIndex = x 'x=number of the element to be selected
-
May 14th, 2001, 01:06 PM
#3
Re: ListBox problem
private Sub Command1_Click()
' List1.MultiSelect = true ' assign at Design time
List1.Selected(2) = true
List1.Selected(4) = true
End Sub
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
|