I have this code here, It will expand the treeview to the item but doesn't select it. I would like for it to select it just as if I clicked on it.
If anyone can help me with this I would sure appreciate it, Thank you.

VB Code:
  1. Dim i As Integer
  2.     For i = 1 To frmmain.TreList.Nodes.Count
  3.         If frmmain.TreList.Nodes(i).Text = lstSearch.SelectedItem.Text Then
  4.             frmmain.TreList.Nodes(i).Selected = True
  5.                 Exit For
  6.         End If
  7.     Next i