G
Guest
Hi All,
Can anybody help in converting the code below to VB.NEt thanks.
I need the loop converted..
thanks
Private Sub expandCollapseAllTreeviewNodes(ByVal nodes As
TreeNodeCollection, ByVal expand As Boolean)
Dim node As TreeNode
'Loop through each node of the collection and expand it.
For Each node In nodes
if(expand)
{
node.Expanded = true;
expandCollapseAllTreeviewNodes(node.Nodes, expand)
}
else
{
node.Expanded = true;
expandCollapseAllTreeviewNodes(node.Nodes, expand)
}
Next
Can anybody help in converting the code below to VB.NEt thanks.
I need the loop converted..
thanks
Private Sub expandCollapseAllTreeviewNodes(ByVal nodes As
TreeNodeCollection, ByVal expand As Boolean)
Dim node As TreeNode
'Loop through each node of the collection and expand it.
For Each node In nodes
if(expand)
{
node.Expanded = true;
expandCollapseAllTreeviewNodes(node.Nodes, expand)
}
else
{
node.Expanded = true;
expandCollapseAllTreeviewNodes(node.Nodes, expand)
}
Next