>How can I detect if a specific item in the treeview is a root or a child?
Michel,
You can use Node properties Parent, Child, Root, etc., so true value for
ISNULL(thisform.myOleTree.SelectedItem.Parent)
or
ISNULL(thisform.myOleTree.Nodes(1).Parent)
means that it is a root node.
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison