Hi,
Was wondering if anyone could enlighten me on this on;
I have a TreeView Control, The Control has 5 nodes and each node has 2 child nodes. Beside the TreeView Control I have a TextBox Control. What I want to do is everytime i click on a each node or child node i want the certain text to show in the TextBox.
I Figured that to do this would be a case of using a simple IF - ELSE statment to find the node and insert the piece of text...
But after the Following line of code im stuck
PrivateSub TreeView1_AfterSelect(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles TreeView1.AfterSelect
See I cant seem to find out which part of this statment holds which node is selected and since i don't know that i cant implement a IF - ELSE loop.
Any suggestions?
By the way the stament above is what is generated when you double click the TreeView control.
Was wondering if anyone could enlighten me on this on;
I have a TreeView Control, The Control has 5 nodes and each node has 2 child nodes. Beside the TreeView Control I have a TextBox Control. What I want to do is everytime i click on a each node or child node i want the certain text to show in the TextBox.
I Figured that to do this would be a case of using a simple IF - ELSE statment to find the node and insert the piece of text...
But after the Following line of code im stuck
PrivateSub TreeView1_AfterSelect(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles TreeView1.AfterSelect
See I cant seem to find out which part of this statment holds which node is selected and since i don't know that i cant implement a IF - ELSE loop.
Any suggestions?
By the way the stament above is what is generated when you double click the TreeView control.