Treeview

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

i have a treeview control and a textbox. the treeview has lotsof different
nodes in it (i'm making a dictionary). i want a node to be selected and the
definition is in the textbox. i cannot, however, create a click event for a
node, just the treeview itself

how do i do this?
 
Try using the AfterSelect event rather than click as AfterSelect will give
you a TreeViewEventArgs which will contain a reference to the associated
TreeNode through the Node property.

Brendan
 
hi,

sorry about the last message. i accidentally clicked post as i was typing.
anyway thanks but i cant find the names of the nodes in the intellisense.
should i not use the if statement? here is my code so far

if (node1 //node1 doesn't exist in the intellisense
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top