Found the answer
Hi Rod,
I just found the answer to my question. All I have to do is to set the focus on the Tree View control when I add the first node to it. In that way it will automatically select that node. After that, there will always be one node selected and the problem will be solved. I used:
TreeView1.Focus()
Thanks for your ongoing help. I will certainly be back with more questions.
Regards,
Gary
|