|
-
Mar 23rd, 2000, 01:25 AM
#1
Thread Starter
Hyperactive Member
Hi there,
I have a treeview control with parent and child nodes. When you click the 'Main Menu' (Parent node), 3 child nodes appear as I have in the code below.
I want to have it so that, when one of the child nodes is clicked, a respective textbox will appear on my form (I have all textboxes set to visible=false). Could someone tell me how to do this, please?
Private Sub Form_Load()
Dim ndsnode As Node
' Here your making the first Main Nodes
Set ndsnode = treeview.Nodes.Add(, , "MAIN1", "Main Menu")
' Here you make child nodes under Main1 Node
Set ndsnode = treeview.Nodes.Add("MAIN1", tvwChild, "CHILD1" & A, "Part 1")
Set ndsnode = treeview.Nodes.Add("MAIN1", tvwChild, "CHILD2" & A, "Part 2")
Set ndsnode = treeview.Nodes.Add("MAIN1", tvwChild, "CHILD3" & A, "Part 3")
End Sub
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
|