Thanks,
Now everything works, except the treview is not visble unti I click on the space where it is located.
Peter
>You could try setting the Expanded node property to .T. as you load each node into the TreeView. For example:-
>
>loNode = ThisForm.TreeView.Nodes.Add(....)
>loNode.Expanded = .T.
>
>Performance may suffer a little if you have large numbers of nodes to deal with but their is an API call to stop windows updating through the TreeViews HWND property.
Peter Cortiel