>Try this just to make sure you have the correct syntax.
>
>
>WITH THISFORM.OleTreeView
> FOR lnCurNode = 0 TO .ListCount
> .NodeExpanded[ lnCurNode ] = .T.
> ENDFOR
>ENDWITH
>
>
>If this works, you may have to expand more than one node in order to get that section auto expanded. But first let me know if this expands the entire tree.
It doesn't work... my oletreeview hasn't a ListCount property. I'm using version 5.0.
I've tried the code below inside a combobox's InteractiveChange, which I've put all itens of my tree, and it works.
THISFORM.oleTreeview.Nodes(VAL(This.Value)).Selected = .T.
it expand my treeview until the item selected in the combo...
I think this solve my problem...
Thanks!
Claudio Lassala