Question Details

No question body available.

Tags

c# winforms treeview

Answers (1)

Accepted Answer Available
Accepted Answer
June 6, 2026 Score: 1 Rep: 114,753 Quality: High Completeness: 70%

It happens only when you place a regular breakpoint there, because hitting the breakpoint changes the focus and fires additional events. Try to use an action breakpoint instead. You can use it to print to the output window and this won't create an infinite loop.

enter image description here

Example Output window:

Selected node: {Text = "Node0"} Selected node: {Text = "Node0"} Selected node: {Text = "Node4"} Selected node: {Text = "Node10"}