Treeview Selected Node

TonyW

Newcomer
Joined
Mar 19, 2003
Messages
1
Hi All

Hopefully someone has an answer for my problem...

I have a treeview control on a form, if I have a node selected and then right click on a different node it would appear that this right clicked node is selected however this is not really the case and the treeview still holds the first node as the "tvSample.SelectedNode". The same thing will happen if I click in a white space, a different node appears to be selected but in reality to get a node to be the "SelectedNode" it must first be fully left clicked.

Any help greatly appreciated.

Thanks

Tony :D
 
The best way I've found to deal with this is to use the GetNodeAt method in the MouseDown event and set the SelectedNode to that node.
 
Back
Top