Question on Tree View Node Click Handler

R

Rich

Another question from a noob.

I need to use a Tree View and perform actions when the user clicks on
nodes in the tree.

I can manually add a handler function for NodeMouseClick, but this
requires me to edit the InitializeComponent method in the region
"Windows Form Designer Generated Code". The comments in this region
say "do not edit this method" - this leads me to believe there is a
better way to do this.

What is the "right" way to add a handler for mouse clicks on nodes in a
tree view?

Thanks,
 
R

Rich

Rich said:
Another question from a noob.

I need to use a Tree View and perform actions when the user clicks on
nodes in the tree.

I can manually add a handler function for NodeMouseClick, but this
requires me to edit the InitializeComponent method in the region
"Windows Form Designer Generated Code". The comments in this region
say "do not edit this method" - this leads me to believe there is a
better way to do this.

What is the "right" way to add a handler for mouse clicks on nodes in a
tree view?

Thanks,

Sorry, this was a duplicate post - having some technical difficulties
here.
 

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

Top