spebola
Regular
I have a form with a treeview and a listview side by side. When the user selects a row in the listview, I want to expand the corresponding node in the treeview. I have tried the following code but it returns an exception (out of range):
Dim tvwIndex as Integer = lvw.FocusedItem.Index
tvw.Nodes(tvwIndex).Expand()
This code is in the Click event for the listview.
Any help would be appreciated.
Dim tvwIndex as Integer = lvw.FocusedItem.Index
tvw.Nodes(tvwIndex).Expand()
This code is in the Click event for the listview.
Any help would be appreciated.