ThisForm.TreeView1.Nodes("SampleNodeKey").Expanded = .F.This will collapse only that node. If you want to collapse all nodes, you can collapse root node. In this case all other nodes will be not visible, but internally will be not collapsed. I.e. if you expand root node, they also will be expanded. For every node, which you want to be collapsed, you must write code like above.
Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000) br>
VB (.NET) - what other language do you need in the whole Universe?...