This code is for parent how to do same thing with child of parent?
If e.Node.Index = 1 Then
MsgBox("Parent")
End If
TreeView: how to select Child of parent?
Page 1 of 12 Replies - 1094 Views - Last Post: 05 August 2012 - 11:35 PM
Replies To: TreeView: how to select Child of parent?
#2
Re: TreeView: how to select Child of parent?
Posted 05 August 2012 - 09:32 PM
Use the level property for the root node.
Or if you consider a parent as any child that has contains child nodes then:
If e.Node.Level = 0 Then
Debug.WriteLine("Parent")
Else
Debug.WriteLine("Child")
End If
Or if you consider a parent as any child that has contains child nodes then:
If e.Node.Nodes.Count > 0 The
Debug.WriteLine("Parent")
Else
Debug.WriteLine("Child")
End If
#3
Re: TreeView: how to select Child of parent?
Posted 05 August 2012 - 11:35 PM
Wouldn't Parent.Child be you?
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|