I'm triing to select a node in my activeTreeView control like a user clicks to the node.
Well, with Tree.Nodes(Node).selectedItem the Node is selected (highlited) but not the same as when the item is clicked.How can I simulate a Click to a node?
Hi Kim,
It's been quite a number of years since I looked at the ActiveX tree. In the DotNet version, there's an ActiveNode property which you can set and also the node itself has an Activate method. So I imagine there is something similar in the ActiveX version. It's possible that I am wrong, though. Like I said, it's been a long time.
Thanks for the reply.
How do i select the Activenode? I have version 1.04 build 0016.
Thanks.
Kim
Hi,
Making the node blue (highlighted) means that the node is selected. The focus rectangle will only display on the active node. Active and selected are not the same thing. So make sure you are setting the ActiveNode as well as selecting the node.
Also, a focus rect indicates focus. So in order for it to display, the tree control itself must have focus, so call the tree.Focus() method to make sure it has it.
I am having this problem as well. I can get it to turn blue but i can't get the focus rectangle on the node.
I have the same problem
I would like to preselect a node like I have clicked it
but it's not working
node.Selected = true doesn't seem to make anything
node.hidden = true works for instance