Click to See Complete Forum and Search --> : ListView TreeView
Slimak
Nov 5th, 1999, 02:00 PM
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 (http://members.spree.com/sports/slimak)
Zarembisty@aol.com
chrisfricke
Nov 6th, 1999, 05:13 PM
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
QWERTY
Nov 6th, 1999, 08:41 PM
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).]
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.