Are you sure you didn't mistype something? I don't have any problem changing Treeview Enabled property.
>VFP7SP1 on Win2K SP3 and IE 6. . .
>
>A Treeview (named "TypeSelector") on a form, from a sub-classed OLEContainer Control named "MerTypeSelector".
>
>During the form Init() I have the statement:
>
>ThisForm.TypeSelector.OBJECT.Enabled = .F.
>
>It disables the control as expected.
>
>Later in a form method called 'EnableFields' I execute the command :
>
>ThisForm.TypeSelector.OBJECT.Enabled = .T.
>
>This causes the following error message:
>"OLE error code 0x80020006: unknown name"
>
>A quick search of MSDN reveals nothing.
>
>Any help appreciated.
--sb--