web development India freelance website designer
This example adds several Node objects to a TreeView control. When you click the form, the
Expanded property for each Node is set to True. 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 form to expand all the Node objects.

Private Sub Form_Load()
Dim nodX As Node
Dim i as Integer
TreeView1.BorderStyle = vbFixedSingle ' Show border.

' Create a root node.
Set nodX = TreeView1.Nodes.Add(,,"root","Root")

For i = 1 to 5 ' Add 5 child nodes.
Set nodX = TreeView1.Nodes.Add(i,tvwChild,,"Node " & CStr(i))
Next i
End Sub

Private Sub Form_Click()
Dim I as Integer
For I = 1 to TreeView1.Nodes.Count
' Expand all nodes.
TreeView1.Nodes(i).Expanded = True
Next I
End Sub

Expand

1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593

Freelance ASP PHP web development | Web developer India Web development India| Prayagasoft - web designer India, Ecommerce developer india, Ecommerce design