ListView Selection

TwoWing

Well-known member
Joined
Jan 6, 2006
Messages
71
Location
Near Portsmouth, England
Programming Experience
Beginner
Hello.
Is there a way to select/highlight a line in a ListView without clicking on the line? Such as matching what is in a TextBox with a button click?
I have searched the internet and MSDN but can not find anything. There must be a way, surely? Can someone please show me how to do it.
Thanks.
 
yep

on the button_click event put something like this


for i as integer=0 to listview1.items.count-1
if txtinput.text=listview1.items(i).text then
listview1.items(i).selected=true
end if
end for
good luck
regards
adam
 
Back
Top