>Hi Ed,
>
>Thanks for your response. I installed into the end-user machine one of my old vb5 program that contains the treeview control. And all in a sudden , the treeview in the vfp application also works. What possibly causes this phonomena?
>Both application came from the same development machine. Any idea?
VB program replaced and re-registered comctl32.ocx. There is a problem with updates of this kind and the TreeView and other common controls. Each time MS updates the version of comctl32 stuff and you install say, new version of VB (or Windows :), which may reinstall it - there is a chance that your FoxPro app containing TreeView will fail and this is not your fault. :)
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