|
-
Sep 22nd, 2000, 08:32 AM
#1
Thread Starter
Addicted Member
how do i use the treeview please help
WHat would we do with out Microsoft.
A lot more.
-
Sep 22nd, 2000, 11:03 AM
#2
Fanatic Member
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.
-
Sep 22nd, 2000, 01:05 PM
#3
Fanatic Member
Is there a way to do it not threw a code but in the
visual setup?
-
Sep 25th, 2000, 02:53 AM
#4
Fanatic Member
I don't think there is anyway to do that at design time (the visual setup) unless anybody else knows how?
-
Sep 25th, 2000, 07:06 AM
#5
Frenzied Member
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?!?!?
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
|