Results 1 to 4 of 4

Thread: Treeview

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Pilipinas
    Posts
    441

    Treeview

    how to use treeview in VB.NET?

    'node
    Dim nod As Node
    Set nod = TreeView1.Nodes.Add(, , "root", "Customers", "msn")
    nod.Expanded = True

    I tried this code but it already doesn't work in VB.NET.
    Kindly help me?

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    VB Code:
    1. Dim nod As TreeNode = treeview1.Nodes.Add("Customers")
    2.         nod.Expand()

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Pilipinas
    Posts
    441
    how to add a child node?

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    VB Code:
    1. Dim nod As TreeNode = treeview1.Nodes.Add("Customers")
    2.         nod.Expand()
    3.         'add a child
    4.         Dim child As TreeNode=nod.Nodes.Add("Edneeis")
    5.         child.Expand()

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