find text with item question

Ldragon99

Member
Joined
Oct 13, 2007
Messages
10
Programming Experience
1-3
I am new to vb.net and have a question that I am sure is very simple. I am using the FinfItemWithText methode in vb.net to find an item in my listbox. What I want to do is be able to populate the listbox with the results from the search. including all of the sub items. I am able to get the tag and the main text, but how do I get all the sub items. My code is something like this

results = listview1.finditemswithtext("Test", true, 0)

Please help a newbie.....
 
The find method return you a ListViewItem, you can access subitems through its SubItems property.
 
Great now how do I select it

Ok I got that. I have populated th listview with the results. Now I want to select this trough code. I have tried to use the listview.selected = True and I do not get the colum or row highlighted to show me it is selected. How is that done? Or can it be done?
 
This is also set on the ListViewItem, Selected Property.
 
Back
Top