Results 1 to 3 of 3

Thread: ListView TreeView

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    Northampton, MA
    Posts
    10

    Post

    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]


  2. #2
    Lively Member
    Join Date
    Jan 1999
    Location
    Lincolnshire, UK
    Posts
    111

    Post

    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

  3. #3
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    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
  •  



Click Here to Expand Forum to Full Width