Hi all,
I´ve finally managed to assign an array to a treenode tag, displaying the tag(0) as tooltip.
However, on the nodedoubleclick event, I want to get the tag(0) value to navigate a bindingsource, and the tag always returns 8, no matter which node I click. 8 is the number of treenodes if that has anything to do with it.
this is the code:
Thanks!Code:Private Sub TreeView1_NodeMouseDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseDoubleClick Dim pos As Integer pos = Me.TreeView1.SelectedNode.Tag(0) Evaluate.BindingSource3.Position = pos Evaluate.updat() End Sub
Fuga.




Reply With Quote