Private Sub TreeView1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles TreeView1.Click
txtProductCode.Text = Microsoft.VisualBasic.Left(TreeView1.SelectedNode.Text, 6)
End Sub

My treeview is populated with
structure
SAA101...........
SAA102...........

and so on. If I click on SAA101 my textbox shows struct when then click on SAA102 it shows SAA101. It doesn't always show the currentselected - 1 but the last one selected. So if I selected SAA101 then selected SAA110 it would show SAA101 when I expect SAA110 and not SAA109.