The TreeView_SetSelectedNode() function makes the specified node selected and visible in the tree view field.
TreeView_SetSelectedNode(tree_view_field, node_ID)
• tree_view_field – The tree view field containing the specified node.
• node_ID – A long integer specifying the ID of the node that will be selected.
A boolean indicating whether the node was selected. True indicates the node was selected, while false indicates it was not.