Hello,
Let's say I have a TabControl with 2 tabs and a TreeView with 2 nodes at the root.
I want the application to behave in the following manner : if I click on Node1 from the treeview, the Tab1 from the TabControl should become active. Similarly, when I click on Tab2, I want the Node2 to become selected. And vice-versa.
So I simply coded this with TreeView_AfterSelect and TabControl_SelectedIndexChanged.
How do avoid "race conditions" between the 2 controls since they are triggering each other's event?