• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

FAST TRACK TO USING TREEVIEW

I would be willing to spend some points if someone will point me to some same Treeview code to get me going.  The help file information is a little sparse on this control.  The application I've been asked to develop will make extensive use of this control.  Need some links by Monday, if possible.
0
Dreaming_Eagle
Asked:
Dreaming_Eagle
1 Solution
 
rovermCommented:
Something like this ?

The following example adds two Node objects to a TreeView control. To try the example, place a TreeView control on a form, and paste the code into the form's Declarations section. Run the example, and click the Node object to expand it.

Private Sub Form_Load()
   ' Set Treeview control properties.
   TreeView1.LineStyle = tvwRootLines  ' Linestyle 1

   ' Add Node objects.
   Dim nodX As Node  ' Declare Node variable.
   ' First node with 'Root' as text.
   Set nodX = TreeView1.Nodes.Add(, , "r", "Root")

   ' This next node is a child of Node 1 ("r").
   Set nodX = TreeView1.Nodes.Add("r", tvwChild, "child1", "Child")
End Sub

This came from the MSDN !
See: http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/officedev/office97/output/f1/d2/s5a33d.htm

Follow the properties and method links from here !

RoverM
0
 
Dreaming_EagleAuthor Commented:
Thanks...I found a sample app there perfect for modification to my own purposes...

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now