On Mon, 6 Jun 2005 06:25:48 -0400, "Ken Tucker [MVP]"
<vb***@bellsouth.net> wrote:
Actually I'd already seen that example in the online help. My lack of
patience made me glance instead of reading and understand - since the
FullPath property is what I was missing out on. I ended up with
Dim myFolder As String
Dim lf As ListFolders
lf = New ListFolders(Foldername, False)
lf.Execute()
Dim lfEnum As IEnumerator = lf.GetFolders.GetEnumerator()
While lfEnum.MoveNext()
myFolder = lfEnum.Current
myFolder = myFolder.Substring(InStrRev(myFolder, "\"))
Me.TreeView1.SelectedNode.Nodes.Add(myFolder)
End While
lf = Nothing
Me.TreeView1.SelectedNode.Expand()
....calling it with the TreeView.SelectedNode.FullPath.
Thx for re-routing me. ;-)
Regards /Snedker
I think this is what you are looking for.
http://msdn.microsoft.com/library/de...lpathtopic.asp