>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?
>
See my response to your message to Nick. The VB project and the VFP app probably had the same version of the control being referenced, even if a newer (or older) version of the Treeview control was included by Setup Wizard - if you didn't build the project on the same system that you built the app on, and they had different versions of the Common Control Dialog OCX on them, it's the most likely cause. Visually adding the control embeds the CLSID of the control, rather than the slightly slower but more generic approach of instantiating programmatically using the ProgID.
>
>Kam.