T
tmaster
I can detect a right click on my treeview, but SelectedNode.Index points to
the last node that was left-clicked. Is there a way for a right-click event
of a treeview to update the SelectedNode.Index?
Private Sub tvwTopics_Mouseup(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles tvwTopics.MouseUp
If e.Button = MouseButtons.Right Then
MsgBox("Right click " &
tvwTopics.Nodes(tvwTopics.SelectedNode.Index).Text)
End If
End Sub
Thanks
the last node that was left-clicked. Is there a way for a right-click event
of a treeview to update the SelectedNode.Index?
Private Sub tvwTopics_Mouseup(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles tvwTopics.MouseUp
If e.Button = MouseButtons.Right Then
MsgBox("Right click " &
tvwTopics.Nodes(tvwTopics.SelectedNode.Index).Text)
End If
End Sub
Thanks