|
-
Nov 5th, 1999, 03:00 PM
#1
Thread Starter
New Member
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]
-
Nov 6th, 1999, 06:13 PM
#2
Lively Member
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
-
Nov 6th, 1999, 09:41 PM
#3
Fanatic Member
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).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|