Hi All, I have a TreeView control that has a 2 different levels of nodes (parents plus children). I want one event to fire in a single mouse-click, and a different event to fire on a double mouse-click. Double works just fine, but on the single, it does not recognize which level of the tree was clicked on the FIRST try.
For example, when starting the program, if I click on the parent node, it returns me a nodelevel of 0 (zero), which is correct. If I click on the child right after that, it returns 0 again. But if I click on any other child one more time, then it finally returns 1.
Does anyone know why it takes two single clicks to realize which level was clicked? Is there some other event that I need to fire in order for it to realize which level was clicked?
Thanks in advance.
FYI - I'm using VS 2008 in C#
For example, when starting the program, if I click on the parent node, it returns me a nodelevel of 0 (zero), which is correct. If I click on the child right after that, it returns 0 again. But if I click on any other child one more time, then it finally returns 1.
Does anyone know why it takes two single clicks to realize which level was clicked? Is there some other event that I need to fire in order for it to realize which level was clicked?
Thanks in advance.
FYI - I'm using VS 2008 in C#