>>>>>How do i disable a treeview?
>>>
>>>>Is there something wrong with the .Enabled property? Works for me.
>>>
>>>I would expect that it would work for me too. But it doesn't. My treeview is still responding to the mouse click. I searched the whole UT for an awnser and found many members with the same problem. There was nobody who could solve the problem or couldn't even explain the reason.
>>
>>Which version of VFP and the TreeView are you using? VFP6/SP3 and TV6 work OK.
>
>
>VFP6/SP3 and TV6 and IL6. I created a new form just to make sure that i'm using the newest versions. There is only the treeview, the imagelist and a button to disable the treeview. Same result. The treeview is responding to the mouseclick no matter wether it's enabled or not. I also tried all kinds of tricks i found in UT. It's really sad.
Here's a simple trick that should work, if all else fails. Place an invisible shape behind the treeview control. When you need to disable the treeview bring the shape to the front.