Get Tag of Selected Check Box

daPoet

Member
Joined
Jul 22, 2008
Messages
23
Programming Experience
Beginner
How do you get the value of the node whose check box is checked?

Kinda going around in circles, I have the tree working, Im able to add tags of the nodes that I click to a list box.

What I need now is to be able to add/remove those tags to/from the listbox when the check boxes are checked/unchecked.

Please advise...
 
Solved IT

if anyone else has this problem, maybe this will help u.

Private Sub TreeView1_nodeClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles TreeView1.AfterCheck
Dim s As String = e.Node.Tag()
Me.ListBox1.Items.Add(s)
'End If
End Sub


The key was to use the e.Node.Tag as well as the change the event for the tree which was set to "treeview1.afterselect" or some thing like that , so I changed it to "treeview1.afterCheck"
 
Back
Top