TonyW Posted March 20, 2003 Posted March 20, 2003 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 Quote
*Experts* Nerseus Posted March 20, 2003 *Experts* Posted March 20, 2003 What event are you using to see what the SelectedNode is? -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
*Gurus* divil Posted March 20, 2003 *Gurus* Posted March 20, 2003 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.