R
Rich
Another simple question from a noob.
I would like to use a tree view and perform actions when the user
clicks on nodes in the tree.
The C# IDE sets up many things automatically - for example when you
double-click on a button control in the designer it creates a function
for the button click handler and takes you to the code. Is there a
means for the IDE to create functions for things like clicks on tree
nodes?
I can make this work by manually adding a function, but this requires
me to edit the "Windows Form Designer Generated Code" to assign my
handler function to the node mouse click event handler for the tree
view. The comments for this region say "do not modify the contents of
this method with the code editor", which tells me I probably shouldn't
be doing it this way.
What is the "right" way to do this?
Thanks,
Rich
I would like to use a tree view and perform actions when the user
clicks on nodes in the tree.
The C# IDE sets up many things automatically - for example when you
double-click on a button control in the designer it creates a function
for the button click handler and takes you to the code. Is there a
means for the IDE to create functions for things like clicks on tree
nodes?
I can make this work by manually adding a function, but this requires
me to edit the "Windows Form Designer Generated Code" to assign my
handler function to the node mouse click event handler for the tree
view. The comments for this region say "do not modify the contents of
this method with the code editor", which tells me I probably shouldn't
be doing it this way.
What is the "right" way to do this?
Thanks,
Rich