Does anybody know how to make something like Win Explorer using ListView and TreeView. I'd like to know how to add files and folders to these two controls. thanks
------------------
Marek Karbarz
My WebPage
[email protected]
Printable View
Does anybody know how to make something like Win Explorer using ListView and TreeView. I'd like to know how to add files and folders to these two controls. thanks
------------------
Marek Karbarz
My WebPage
[email protected]
Create a control called tree1
Public Sub AddFolder(FolderKey as string,FolderText as string,FolderPath as string)
dim NodFolder as node
set nodfolder = tree1.nodes.add(tree1.selecteditem.key,tvwchild,FolderKey,FolderText)
set nodfolder.tag = folderpath
end sub
FolderKey has to be unique and foldertext is the text that appears next to the box. To make an explorer type app, when a user clicks on a node, read the tag and have a file list box on the right whose path you can set to the selected nodes tag (eg file1.path=tree1.selecteditem.tag)
(PS Check the syntax of the nodes.add function as I'm not sure if it's quite right)
Chris
Thanks
------------------
Visual Basic Programmer (at least I want to be one)
------------------
PolComSoft
You will hear a lot about it.
P.S. QWERTY=SLIMAK
[This message has been edited by QWERTY (edited 11-07-1999).]