Hi Albert
In the TreeView's DblClick method, you need to say something like :-
This.SelectedItem.Expanded = .T.
You literally have to re-expand the item - the behaviour you are experiencing is one of those annoying quirks of the treeview control.
HTH
>Hello Everybody
>
>I use a treeview to show structured data from our electronic archiv.
>When doubleclicking on a node i call an "archivviewer.exe" to show the wanted archiv data (pdf,tif...)
>
>But when doubleclicking on a node, the node is also expanded or shrinked.
>
>I want to stop this behavior and put a "nodefault" in my doubleclick event.
>No success.
>The node is still expanded or shrinked and then the archiv viewer starts.
>
>I don't know how to prevent the treeview nodes from being expanded when doubleclicking ??
>
>Any help welcomed
>
>Best regards
>
>Albert
-=Gary