Unanswered: Putting cursor at next node in tree after deletion?
This may be simple, but I haven't figured it out yet (not much experience with tree objects).
I have a tree object in a subform. I am deleting a node from the tree, but before I do, I do a "Set NextNode = objTree.SelectedItem.Next", which correctly identifies the next node after the deleted node.
After I delete the node and repopulate the tree, I try to do a "Set objTree.SelectedItem = NextNode", but the cursor does not seem to get set to that spot in the tree.
So, my question is this: If I have a node in a tree identified, how do I force the cursor to be set to that location (and have it displayed, in case it is currently scrolled out of view)?
"I'm afraid the holodeck will be society's last invention." - Scott Adams