So I followed MS article http://msdn.microsoft.com/en-us/library/ms171645.aspx
This is Creating an Explorer Style Interface with the ListView and TreeView Controls Using the Designer.
Right now it loads up a tree view on the left with folders, and then on the rigth it shows the list view.
Now when i select a folder or file on the right hand pane, I would like to get the full file path. Howerver, when I do the listview.selectIndex[0], it only provides me the name. I belive this is becuase the path is being dirrived from the left hand tree view.
Does this make sense? What i want to accomplish is to select the file and it provide me the full path.
Suggestions?
Correct. You need to combine the path from the
TreeViewcontrol with the name of the item in theListViewcontrol.Sample code (where
TreeView1is your left-handTreeViewcontrol, andListView1is your right-handListViewcontrol):