S
shoa
Hello
I have a TreeView in my Window application. In that I have some nodes
(parent nodes), each parent node has some children. What I want is that when
I double click a node (either parent or children), I can print the Text of
that node. I have:
Private Sub TreeView1_DoubleClick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TreeView1.DoubleClick
Dim objTreeNode As TreeNode
objTreeNode = TreeView1.GetNodeAt(m_x, m_y)
If Not (objTreeNode Is Nothing) Then
Debug.WriteLine("You double clicked " & objTreeNode.Text)
End If
End Sub
However, by using this method, I can print a text for a parent node but not
for a child node. Coul you please help
Thanks
S.Hoa
I have a TreeView in my Window application. In that I have some nodes
(parent nodes), each parent node has some children. What I want is that when
I double click a node (either parent or children), I can print the Text of
that node. I have:
Private Sub TreeView1_DoubleClick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TreeView1.DoubleClick
Dim objTreeNode As TreeNode
objTreeNode = TreeView1.GetNodeAt(m_x, m_y)
If Not (objTreeNode Is Nothing) Then
Debug.WriteLine("You double clicked " & objTreeNode.Text)
End If
End Sub
However, by using this method, I can print a text for a parent node but not
for a child node. Coul you please help
Thanks
S.Hoa