Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

Searching a TreeView for a certain string and expanding / selecting / highlighting

$
0
0
Folks:

I very much appreciate the help the folks from the forum had given me...but I come asking again.

I have a TreeView (trvMasterFormat) populated with parents that spawn down to as many as four levels. Using the same data with which I populated the TreeView, I allow the User to search for a particular word or phrase and add the matches to a ListBox (lbxSearchResults). Thereafter, as the User clicks on, or selects, an item from the ListBox, I expect to be able to search all nodes (levels) in the TreeView and locate the matching search result. Thereafter I would like to expand the TreeView in order to show the matching TreeView node and have it appear highlighted.

I am a novice to VB.Net so any clear detail in the way of code sample would be greatly appreciated.

Thanks in advance!

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>