Results 1 to 5 of 5

Thread: TREEVIEw

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 1999
    Posts
    204
    how do i use the treeview please help
    WHat would we do with out Microsoft.
    A lot more.

  2. #2
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Wink

    To use the MS Tree View control you must setup the nodes (branches) at run time (in code). You cannot setup the nodes at design time.

    1) To setup the root node:

    Set NewNode = msTreeView.Nodes.Add(, , strNodeKey, strNodeText)

    where strNodeKey is a unique string to identify the node and strNodeText is the displayed text.

    2) To add children (branches):

    Set NewNode = msTreeView.Nodes.Add(ParnentNode,tvwChild, strChildNodeKey, strChildNodeText)

    Is this enough information?

    Simon.

  3. #3
    Fanatic Member
    Join Date
    Aug 2000
    Location
    I'm right here!
    Posts
    849
    Is there a way to do it not threw a code but in the
    visual setup?
    Dekel C.

  4. #4
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Thumbs down

    I don't think there is anyway to do that at design time (the visual setup) unless anybody else knows how?

  5. #5
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    No, sorry. No way to do this yet. Add it to the Wish List for vb7. Personally I think it wouldn't be too hard, and I considered doing a custom control to emulate that feature, but heck. They added coolbars to VB6, so why not editable trees to VB7?!?!?
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

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